def compare_dates(y1, m1, d1, y2, m2, d2): """ Если даты равны - вернуть 0 если date1 меньше date2 - вернуть -1 если date1 больше date2 - вернуть 1 """ if y1 == y2 and m1 == m2 and d1 == d2: return 0 elif y1 > y2 or (y1 == y2 and m1 > m2) or (y1 == y2 and m1 == m2 and d1 > d2): return 1 else: return -1 def test_compare_dates(): assert compare_dates(2020, 9, 26, 2020, 9, 26) == 0 assert compare_dates(2020, 9, 25, 2020, 9, 26) == -1 assert compare_dates(2020, 9, 27, 2020, 9, 26) == 1 assert compare_dates(2020, 9, 26, 2020, 10, 26) == -1 assert compare_dates(2020, 9, 26, 2020, 8, 26) == 1 if __name__ == '__main__': test_compare_dates() name = 'Ковинский Руслан' # TODO: напишите Ваше имя print(f'26 сентября - {name}')