Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Adding two lists using map() and Lamda Function

# welcome to softhunt.net
# Add two lists using map and lambda

num1 = [10, 10, 10, 10]
num2 = [10, 30, 50, 70]

ans = map(lambda x, y: x + y, num1, num2)
print(list(ans))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Adding #lists #Lamda #Function
ADD COMMENT
Topic
Name
9+2 =