lambda function in python for list code example Example: python3 lambda >>> sum = lambda x, y : x + y >>> sum(3,4) 7