forked from tdwojak/Python2017
Update 'labs02/task02.py'
This commit is contained in:
parent
819b314e17
commit
50e576e7d9
@ -6,8 +6,12 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def days_in_year(days):
|
def days_in_year(days):
|
||||||
|
if (days%4==0 and days%100!=0) or days%400==0:
|
||||||
|
return 366
|
||||||
|
else:
|
||||||
|
return 365
|
||||||
pass
|
pass
|
||||||
|
|
||||||
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