forked from tdwojak/Python2018
zrobiono zadanie 2
This commit is contained in:
parent
f0a92e0f68
commit
7f4577f327
@ -6,7 +6,13 @@
|
||||
"""
|
||||
|
||||
def days_in_year(days):
|
||||
pass
|
||||
dni=0
|
||||
if days % 4 == 0 and days % 100 != 0 or days % 400 == 0:
|
||||
dni = 366
|
||||
else:
|
||||
dni = 365
|
||||
|
||||
return dni
|
||||
|
||||
def tests(f):
|
||||
inputs = [[2015], [2012], [1900], [2400], [1977]]
|
||||
|
Loading…
Reference in New Issue
Block a user