4
This commit is contained in:
parent
61d7cdecdf
commit
4234d14a0c
@ -15,3 +15,10 @@ def filter(function, list):
|
|||||||
if function(item) :
|
if function(item) :
|
||||||
res = res + item
|
res = res + item
|
||||||
return res
|
return res
|
||||||
|
def length(list) :
|
||||||
|
counter = 0
|
||||||
|
for item in list:
|
||||||
|
counter = counter + 1
|
||||||
|
return counter
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user