0
0
Fork 0

zrobiono zadanie 2

This commit is contained in:
Michał Jaskuła 2018-06-02 17:29:07 +00:00
parent f0a92e0f68
commit 7f4577f327
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,13 @@
"""
def days_in_year(days):
pass
dni=0
if days % 4 == 0 and days % 100 != 0 or days % 400 == 0:
dni = 366
else:
dni = 365
return dni
def tests(f):
inputs = [[2015], [2012], [1900], [2400], [1977]]