fork download
  1. lista_1 = [10,20,30,40]
  2. lista_2 = lista_1[:]
  3.  
  4. del lista_1[0]
  5.  
  6. print lista_1
  7. print lista_2
  8. print
  9.  
  10. lista_1.append(5)
  11.  
  12. print lista_1
  13. print lista_2
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
[20, 30, 40]
[10, 20, 30, 40]

[20, 30, 40, 5]
[10, 20, 30, 40]