diff --git a/u2/list_ops.py b/u2/list_ops.py index 252486a..1ecfbef 100644 --- a/u2/list_ops.py +++ b/u2/list_ops.py @@ -15,3 +15,10 @@ def filter(function, list): if function(item) : res = res + item return res +def length(list) : + counter = 0 + for item in list: + counter = counter + 1 + return counter + + \ No newline at end of file