python anonymous function multiple arguments

Solutions on MaxInterview for python anonymous function multiple arguments by the best coders in the world

showing results for - "python anonymous function multiple arguments"
Garance
27 Sep 2019
1def sum ( a, b ):			# non anonymous
2        return a+b
3print (sum(1, 2))			# 3
4
5sum = lambda a,b: (a+b)		# anonymous / lambda
6print (sum(1, 2))			# 3