1
0
Fork 0

z1, z2, z3

This commit is contained in:
s45148 2017-11-28 20:31:33 +01:00
parent 7c35d1ea07
commit 740202ea3f
1 changed files with 7 additions and 5 deletions

View File

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