Solved

Write a Simple Python Program by Use of a Single

Question 56

Essay

Write a simple Python program by use of a single if statement with elif headers that prompts the user to enter the name of a month ('January', 'February', etc.) and sets each of the variables fall_season, winter_season, spring_season, summer_season to the appropriate Boolean value. For example, if the user enters 'January', variable winter_season should be set to True, and the rest of the variables set to False. (Consider the months January, February and March as winter; April, May and June as spring; etc.

Correct Answer:

verifed

Verified

month = input('Enter month: ')
fall_seas...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions