How to use anonymous (lambda) function in Python

1 Answer

0 votes
mul = lambda x: x * 3

print(mul(3))
print(mul(4))
print(mul(5))

'''
run:
 
9
12
15
 
'''

 



answered May 30, 2017 by avibootz
...