• Why does not the solution


I would like to give some feedback about ...

From: https://checkio.org/mission/days-diff/solve/


Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

On my computer the code is executed, and outputs the difference between dates in days. And then it gives an error.

from datetime import *

date1 = (1982, 4, 19) date2 = (1982, 4, 22)

def days_diff(date1, date2): d1 = datetime(date1[0], date1[1], date1[2]) d2 = datetime(date2[0], date2[1], date2[2]) print(abs((d1 - d2)))

days_diff(date1, date2)