ns = range(4)Fun = lambda a: a ** 3result = [Fun(x) for x in ns] print(result)
Standard input is empty
[0, 1, 8, 27]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!