7 lines
173 B
Python
7 lines
173 B
Python
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] |