forked from tdwojak/Python2018
Zaktualizuj 'labs02/task02.py'
This commit is contained in:
parent
495c499a92
commit
b819976d5c
@ -6,7 +6,12 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def days_in_year(days):
|
def days_in_year(days):
|
||||||
pass
|
if ((days % 4) == 0 and ((days % 100) != 0)) or ((days % 400) == 0):
|
||||||
|
dni=366
|
||||||
|
else:
|
||||||
|
dni=365
|
||||||
|
|
||||||
|
return dni
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
inputs = [[2015], [2012], [1900], [2400], [1977]]
|
inputs = [[2015], [2012], [1900], [2400], [1977]]
|
||||||
|
Loading…
Reference in New Issue
Block a user