loop use lambda expression in python code example Example: python lambda for loop x = lambda x: (for i in x : print i)