Question: in python please Define a function named get_month_info(month) that takes an integer (month) as a parameter and prints the name of the corresponding month and

 in python please Define a function named get_month_info(month) that takes an

in python please

Define a function named get_month_info(month) that takes an integer (month) as a parameter and prints the name of the corresponding month and says how many days the month has. If the number is outside the valid range of 1 - 12, the function should print an error message as shown below. Note: You may assume the user will always enter an integer value. For example: Test Result get_month_info(2) February is 28 days long. get_month_info(-5) Invalid number! get_month_info(9) September is 30 days long. get_month_info(5) May is 31 days long

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 Databases Questions!