z1, z2, z3

This commit is contained in:
s45148 2017-11-28 20:31:33 +01:00
parent 7c35d1ea07
commit 740202ea3f

View File

@ -6,11 +6,13 @@
"""
def days_in_year(year):
num_days =[]
for y in year:
num_days.append()
return
if year % 4 == 0:
if year % 100 > 0 or year % 400 == 0:
return 366
else:
return 365
else:
return 365
def tests(f):
inputs = [[2015], [2012], [1900], [2400], [1977]]
outputs = [365, 366, 365, 366, 365]