I spent way to much time on this, I'm pretty new to python. If someone could help the get the season from the month, and day that would be great, in the current example I'm just trying to get the month working, but if anyone can assist with adding the days that would be great!
month = int(input("Enter a month: "))
day = int(input("Enter a day: "))
def season(month):
if (month == "12" or month == "01" or month == "02" or month == "03"):
return "winter"
elif(month == "04" or month == "05"):
return "spring"
elif(month =="06" or month=="07" or month == "08" or month == "09"):
return "summer"
elif(month =="10" or month=="11"):
else:
return "fall"
See Question&Answers more detail:os