# 1
a = int(input())
if len(str(abs(a))) == 4:
print(True)
else:
print(False)
# 2
days = (31,28,31,30,31,30,31,31,30,31,30,31)
day = int(input())
if 1 <= day <= len(days):
print(days[day-1])
print("Ошибка")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# 1
a = int(input())
if len(str(abs(a))) == 4:
print(True)
else:
print(False)
# 2
days = (31,28,31,30,31,30,31,31,30,31,30,31)
day = int(input())
if 1 <= day <= len(days):
print(days[day-1])
else:
print("Ошибка")