fork download
  1. a = [10,20,30,40,50]
  2. b = a[2:4]
  3. print b
  4. b[0] = 123
  5. print b
  6. print a
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
[30, 40]
[123, 40]
[10, 20, 30, 40, 50]