Код:
day = int(input('Enter the day: '))
month = int(input('Enter the month: '))
#year = int(input('Enter the year(A.D.): '))
def date(day, month):
# if month >13 or month < 0:
# print('Error, enter the month in range from 1 to 12.')
# return
# if year > 2101 or year < 0:
# print('Error, enter the year in range from 1 to 2100.')
# return
month_list_31 = (1,3,5,7,8,10,12)
for month in month_list_31:
if month == month_list_31:
if day > 0 and day < 32:
print('day')
date(day, month)