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):
|
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]
|
||||||
|
Loading…
Reference in New Issue
Block a user