7 lines
158 B
Python
7 lines
158 B
Python
numbers = [1, 2, 3, 4, 5]
|
|
|
|
#doubled = list(map(lambda x: x * 2, numbers))
|
|
#print(doubled)
|
|
|
|
def double(numbers):
|
|
return list(map(lambda x: x * 2, numbers)) |