Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Double all numbers using a map() and Lamda Function

# welcome to softhunt.net
# Double all numbers using map and lambda
num = (10, 20, 30, 40)
ans = map(lambda x: x + x, num)
print(list(ans))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Double #numbers #Lamda #Function
ADD COMMENT
Topic
Name
8+4 =