-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.9.py
More file actions
22 lines (19 loc) · 662 Bytes
/
2.9.py
File metadata and controls
22 lines (19 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
month = input("Input the month : ")
day = int(input("Input the day: "))
if month in ('January'or'Jan', 'February' or 'Feb', 'March' or 'Mar'):
season = 'winter'
elif month in ('April' or 'Apr', 'May', 'June' or 'Jun'):
season = 'spring'
elif month in ('July' or 'Jul', 'August' or 'Aug', 'September' or 'Sep'):
season = 'summer'
else:
season = 'autumn'
if (month == 'March' or 'Mar') and (day > 19):
season = 'spring'
elif (month == 'June' or 'Jun') and (day > 20):
season = 'summer'
elif (month == 'September' or 'Sep') and (day > 21):
season = 'autumn'
elif (month == 'December' or 'Dec') and (day > 20):
season = 'winter'
print("Season is",season)