This commit is contained in:
englingvi103466 committed 2026-10-29 13:17:57 +01:00
1 parent b17db7bc39
commit d327f5d7e6
7 files changed
+132

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# Nur gerade Zahlen (x % 2 == 0) herausfiltern
result = list(filter(lambda x: x % 2 == 0, numbers))
print("Ergebnis:", result)
assert result == [2, 4, 6, 8, 10]