1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PtichkaEL [24]
4 years ago
14

python Write a program that prompts the user to enter the month and year and displays the number of days in the month. For examp

le, if the user entered month 2 and year 2000, the program should display that February 2000 has 29 days. If the user entered month 3 and year 2005, the program should display that March 2005 has 31 days.
Engineering
1 answer:
sp2606 [1]4 years ago
3 0

Answer:

program

Explanation:

Program that prompts the user to enter the month and year and displays the number of days in the month:

1. print("List of months: January, February, March, April, May, June, July, August, September, October, November, December")

2. month_name = input("Input the name of Month: ")

if month_name == "February":

print("No. of days: 28/29 days")

elif month_name in ("January", "March", "May", "July", "August", "October", "December"):

print("No. of days: 31 day")

elif month_name in ("April", "June", "September", "November"):

print("No. of days: 30 days")

else:

print("Wrong month name")

You might be interested in
whyhwywhywhywhywwhywyhwywhywhwhwwwywhyhwywwyhwyhwyhywhywwhywhywhyhyhywwhyywjyhwhywhywhywhywhywwhywhywhyhywwwwwwwwwwwwwwwwwwwwwww
atroni [7]

why is life I hate life I hate school I hate everything

5 0
3 years ago
To solve the problem, make assumptions for missing data and justify. Given:
finlep [7]

Answer:

5,4,1, this is a explication

6 0
3 years ago
If the gear ratio is 3:5 does it increase torque or speed?
Bas_tet [7]

Answer:

yes it does

Explanation:

3 0
3 years ago
Read 2 more answers
If you've had anything to drink and can't get a ride home from sober friends or family, __________.
laiz [17]

Answer:

The answer is D

Explanation:

3 0
3 years ago
Read 2 more answers
You are an employee of Crewdson, Inc. Under the new policy, if you arrive to work late one morning, you will be required to
EastWind [94]

Answer:

C.leave work late that evening

Explanation:

As I'm the Employee of Crrewdson, Inc.

since I came late for work in the morning, because of the late train

As per the company's new policy, everyone should have to complete there work hours duration.  

so I can't explain that situation to my Manager.

Therefore I had to work late that evening for completion of my work hours duration for that day.

5 0
3 years ago
Other questions:
  • Does a thicker core make an electromagnet stronger?
    13·1 answer
  • Design a circuit with output f and inputs x1, x0, y1, and y0. Let X = x1x0 and Y = y1y0 represent two 2-digit binary numbers. Th
    10·1 answer
  • How does gravity affect your vehicle?
    10·1 answer
  • What fuel do rockets use
    9·2 answers
  • A ball of 0.900 kg slides horizontally over a frictionless surface and bumps into a heavy stone at a speed of 20.0 m / s. The ba
    12·1 answer
  • Air in a large tank at 300C and 400kPa, flows through a converging diverging nozzle with throat diameter 2cm. It exits smoothly
    11·1 answer
  • How old is turtleman
    6·2 answers
  • Pls follow me in brainly​
    8·2 answers
  • If you are working with an extension ladder that has 15 rungs in each of the two sliding sections, this
    12·1 answer
  • Consider the function f(n) = n
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!