forked from tdwojak/Python2017
Update 'labs02/task01.py'
This commit is contained in:
parent
b62e43effe
commit
819b314e17
@ -7,9 +7,11 @@ która zawiera tylko elementy z list o parzystych indeksach.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def even_elements(lista):
|
def even_elements(lista):
|
||||||
|
x=len(lista)
|
||||||
|
list = lista[1:x:2]
|
||||||
|
return list
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
inputs = [[[1, 2, 3, 4, 5, 6]], [[]], [[41]]]
|
inputs = [[[1, 2, 3, 4, 5, 6]], [[]], [[41]]]
|
||||||
outputs = [[1, 3, 5], [], [41]]
|
outputs = [[1, 3, 5], [], [41]]
|
||||||
|
Loading…
Reference in New Issue
Block a user