forked from tdwojak/Python2017
Update 'labs02/task02.py'
This commit is contained in:
parent
819b314e17
commit
50e576e7d9
@ -6,6 +6,10 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user