1
0
forked from tdwojak/Python2017

Update 'labs02/task01.py'

This commit is contained in:
s45164 2017-12-01 17:09:45 +00:00
parent b62e43effe
commit 819b314e17

View File

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