lista_1 = [10,20,30,40]lista_2 = lista_1[:] del lista_1[0] print lista_1print lista_2print lista_1.append(5) print lista_1print lista_2
Standard input is empty
[20, 30, 40] [10, 20, 30, 40] [20, 30, 40, 5] [10, 20, 30, 40]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!