1
0
forked from tdwojak/Python2018

task01, task02 done

This commit is contained in:
puderniczka 2018-06-02 21:48:37 +02:00
parent 170aa04df1
commit 7cab28e194
2 changed files with 13 additions and 3 deletions

View File

@ -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):

View File

@ -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]]