Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- date = int(input())
- if month in ['January', 'February']:
- print('Winter')
- elif month == 'March':
- if date <= 19:
- print('Winter')
- else:
- print('Spring')
- elif month in ['April', 'May']:
- print('Spring')
- elif month == 'June':
- if date <= 20:
- print('Spring')
- else:
- print('Summer')
- elif month in ['July', 'August']:
- print('Summer')
- elif month == 'September':
- if date <= 21:
- print('Summer')
- else:
- print('Autumn')
- elif month in ['October', 'November']:
- print('Autumn')
- elif month == 'December':
- if date <= 20:
- print('Autumn')
- else:
- print('Winter')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement