4 lines
107 B
Python
4 lines
107 B
Python
numbers = [1, 2, 3, 4, 5]
|
|
|
|
doppelt = list(map(lambda x: x * 2, numbers))
|
|
print(doppelt) # [2, 4, 6, 8, 10] |