numbers = [1, 2, 3, 4, 5]
def double(x):
return x * 2
### adjust here ###
result = list(map(double, ))
print(result) # expected [2, 4, 6, 8, 10]
Python
Setting up Python environment...
Output
numbers = [1, 2, 3, 4, 5]
def double(x):
return x * 2
### adjust here ###
result = list(map(double, ))
print(result) # expected [2, 4, 6, 8, 10]
Setting up Python environment...