This commit is contained in:
englingvi103466 committed 2026-10-29 13:26:39 +01:00
1 parent d327f5d7e6
commit 8431a9955a
4 files changed
+4 -13

No files matched your search

+2 -6
View File
@@ -1,7 +1,3 @@
numbers = [1, 2, 3, 4, 5]
# Verdopplung aller Zahlen mittels map
result = list(map(lambda x: x * 2, numbers))
print("Ergebnis:", result)
#assert result == [2, 4, 6, 8, 10]
result = list(map(lambda x: x * 2, [1, 2, 3, 4, 5]))
print(result)