1
0
forked from tdwojak/Python2017

Update 'labs02/task02.py'

This commit is contained in:
s45164 2017-12-01 17:10:54 +00:00
parent 819b314e17
commit 50e576e7d9

View File

@ -6,8 +6,12 @@
"""
def days_in_year(days):
if (days%4==0 and days%100!=0) or days%400==0:
return 366
else:
return 365
pass
def tests(f):
inputs = [[2015], [2012], [1900], [2400], [1977]]
outputs = [365, 366, 365, 366, 365]