Answers for "Double all numbers using a map() Function"

0

Double all numbers using a map() Function

# welcome to softhunt.net
def addition(a):
	return a + a

# We double all numbers using map()
num = (10, 20, 30, 40)
ans = map(addition, num)
print(list(ans))
Posted by: Guest on May-05-2022

Code answers related to "Double all numbers using a map() Function"

Python Answers by Framework

Browse Popular Code Answers by Language