1
0
forked from tdwojak/Python2017

task01 and task02 passed

This commit is contained in:
Ewelina 2017-11-26 19:31:21 +01:00
parent d5755b6965
commit c9b8a28f10
2 changed files with 5 additions and 3 deletions

View File

@ -7,8 +7,7 @@ która zawiera tylko elementy z list o parzystych indeksach.
""" """
def even_elements(lista): def even_elements(lista):
pass return(lista[::2])
def tests(f): def tests(f):
inputs = [[[1, 2, 3, 4, 5, 6]], [[]], [[41]]] inputs = [[[1, 2, 3, 4, 5, 6]], [[]], [[41]]]

View File

@ -6,7 +6,10 @@
""" """
def days_in_year(days): def days_in_year(days):
pass if ((days%4 == 0) and (days%100 != 0)) or (days%400 == 0):
return (366)
else:
return (365)
def tests(f): def tests(f):
inputs = [[2015], [2012], [1900], [2400], [1977]] inputs = [[2015], [2012], [1900], [2400], [1977]]