Sobes.tech
Intern — Senior

Determining if more than a day has passed since the specified date

livecode

Task condition

It is necessary to write a function that returns True if at least one full day has passed since the given date.

from datetime import datetime

def is_old(date):
    """Return True if more than one day has passed since the date"""
    raise NotImplementedError

date1 = datetime(2024, 1, 18)
date2 = datetime(2024, 1, 20)

print(is_old(date1))