From 4234d14a0c36b7ce6a6892316aeeb37bd0d1d4e1 Mon Sep 17 00:00:00 2001 From: vafan Date: Tue, 29 Sep 2026 11:06:40 +0000 Subject: [PATCH] 4 --- u2/list_ops.py | 7 +++++++ 1 file changed, 7 insertions(+) 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