forked from tdwojak/Python2018
task01, task02 done
This commit is contained in:
parent
170aa04df1
commit
7cab28e194
@ -7,8 +7,9 @@ która zawiera tylko elementy z list o parzystych indeksach.
|
||||
"""
|
||||
|
||||
def even_elements(lista):
|
||||
print(lista[::2])
|
||||
pass
|
||||
#print(lista[::2])
|
||||
return lista[::2]
|
||||
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
@ -6,7 +6,16 @@
|
||||
"""
|
||||
|
||||
def days_in_year(days):
|
||||
pass
|
||||
if days % 400 == 0:
|
||||
return 366
|
||||
elif days % 100 == 0:
|
||||
return 365
|
||||
elif days % 4 == 0:
|
||||
return 366
|
||||
else:
|
||||
return 365
|
||||
|
||||
|
||||
|
||||
def tests(f):
|
||||
inputs = [[2015], [2012], [1900], [2400], [1977]]
|
||||
|
Loading…
Reference in New Issue
Block a user