Untitled
unknown
plain_text
a year ago
414 B
2
Indexable
Never
import datetime as dt lera_birthday = dt.date(2015, 5, 16) maxim_birthday = dt.date(2011, 12, 16) today = dt.date.today() today_year = today.year maxim_birthday = maxim_birthday.replace(year=today_year) lera_birthday = lera_birthday.replace(year=today_year) lera_days_left = lera_birthday - today maxim_days_left = maxim_birthday - today print(lera_days_left.days) print(maxim_days_left.days)