Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started