forked from tdwojak/Python2017
z1, z2, z3
This commit is contained in:
parent
7c35d1ea07
commit
740202ea3f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user