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
1# You have to save the lambda expresion for it to work
2
3nameOfLambda = lambda arg1, arg2: expression