list1=[-4,-1,0,3,10]list1 = list1 + [x**2 for x in list1]print(list1)
Standard input is empty
[-4, -1, 0, 3, 10, 16, 1, 0, 9, 100]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!