Created
December 30, 2017 09:41
-
-
Save morisasy/f9b6053643abc9f8fbcfc261e6d6d23a to your computer and use it in GitHub Desktop.
Garden calendar. A python program that user enter a season for the garden activities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def garden_calendar(season): | |
if season == "spring": | |
print("time to plant the garden!") | |
elif season == "summer": | |
print("time to water the garden!") | |
elif season == "autumn" or season == "fall": | |
print("time to harvest the garden!") | |
elif season == "winter": | |
print("time to stay indoors and drink tea!") | |
else: | |
print("I don't recognize that season") | |
season_selected = input("Please enter a season: ") | |
print(garden_calendar(season_selected)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment