Question: Complete the program below that prompts the user to enter the year and the first three letters of a month name (with the first letter

Complete the program below that prompts the user to enter the year and the first three letters of a month name (with the first letter in uppercase) and displays the number of days in the month. Enter a year: 2017 Enter a month (first three letters with the first letter in uppercase): Feb Feb 2017 has 28 days year = # get input from user for the year month = # get input from user for the month if month == "Jan" or month == "Mar" or month == "May" \ or month == "Jul" or month == "Aug" or month == "Oct" or month == "Dec": print(month, year, "has 31 days") # Complete this missing part else: print(month, "is not a correct month name ")

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