Skip to content

Instantly share code, notes, and snippets.

@morisasy
Created December 30, 2017 09:41
Show Gist options
  • Save morisasy/f9b6053643abc9f8fbcfc261e6d6d23a to your computer and use it in GitHub Desktop.
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.
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