Question: Please help... it is a Python 3.o Program assignment Problem 3 The following rhyme helps us remember how many days there are in any given

Problem 3 The following rhyme helps us remember how many days therePlease help... it is a Python 3.o Program assignment

Problem 3 The following rhyme helps us remember how many days there are in any given month: Thirty days has September, April, June, and November, All the rest have thirty-one, Except February which has twenty-eight. More accurate versions of the rhyme deal with the problem posed by the leap year, but let's ignore that for now. Write a function called days which expects one argument, the name of a month as a string, and returns the number of days in that month as given in the rhyme. Assume the argument passed to the function is a valid argument; do not validate the argument. Here are some examples of how your function should work: >>> days ("January") 31 >>> days ("February") 28 >>> days ("March") 31 >>> days ("April") 30 >>>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!