Answers for "python anonymous function multiple arguments"

7

python anonymous function multiple arguments

def sum ( a, b ):			# non anonymous
        return a+b
print (sum(1, 2))			# 3

sum = lambda a,b: (a+b)		# anonymous / lambda
print (sum(1, 2))			# 3
Posted by: Guest on April-19-2021

Code answers related to "python anonymous function multiple arguments"

Python Answers by Framework

Browse Popular Code Answers by Language