Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input('Введите номер месяца:\n'))
- if num in [12, 1, 2]:
- print('Зима.')
- elif num in [3, 4, 5]:
- print('Весна.')
- elif num in [6, 7, 8]:
- print('Лето.')
- elif num in [9, 10, 11]:
- print('Осень.')
- else:
- print('Неверный номер месяца!')
Advertisement
Add Comment
Please, Sign In to add comment