import datetime
day = int(input("Day: "))
month = int(input("Month: "))
year = int(input("Year: "))
date = datetime.date(year, month, day)
datem1 = date - datetime.timedelta(days=1)
print(datem1.strftime("%d.%m.%Y"))
day = int(input("Day: "))
month = int(input("Month: "))
year = int(input("Year: "))
date = datetime.date(year, month, day)
datem1 = date - datetime.timedelta(days=1)
print(datem1.strftime("%d.%m.%Y"))
Соседние файлы в папке Пр3