lambda function instead of for loop python 3 code example Example: python lambda for loop x = lambda x: (for i in x : print i)