use lambda on a list code example Example: python3 lambda >>> sum = lambda x, y : x + y >>> sum(3,4) 7