Ответ:
month_number = int(input("Введите номер месяца: "))
if month_number in [1, 2, 12]:
season = "Зима"
elif month_number in [3, 4, 5]:
season = "Весна"
elif month_number in [6, 7, 8]:
season = "Лето"
elif month_number in [9, 10, 11]:
season = "Осень"
else:
season = "Неверный номер месяца"
print("Результат:", season)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
month_number = int(input("Введите номер месяца: "))
if month_number in [1, 2, 12]:
season = "Зима"
elif month_number in [3, 4, 5]:
season = "Весна"
elif month_number in [6, 7, 8]:
season = "Лето"
elif month_number in [9, 10, 11]:
season = "Осень"
else:
season = "Неверный номер месяца"
print("Результат:", season)