
def double(num):
    return num * 2

# way 1
multiply = lambda x,y: x*y
print(multiply(5,10))

# way 2 
print((lambda x,y: x+y)(6, 82))

numbers = [23, 73, 62, 3]

added = [ x*2 for x in numbers]
print(added)
added = [double(x) for x in numbers]
print(added)
added = [ (lambda x: x*2)(x) for x in numbers]
print(added)
added = map(double, numbers)
print(added)
print(list(added))
added = list(map(lambda x:x*2, numbers))
print(added)