fork download
  1. a=(1,2,3,4,5,6,7)
  2. b=list(a)
  3. c=(4,8,9)
  4. d=list(c)
  5. b.pop()
  6. b.pop(4)
  7. b.insert(2,0)
  8. b.append("Sri")
  9. b[5]=8
  10. print (a[3])
  11. b.extend(d)
  12. print(a)
  13. print(b)
  14. print(c)
  15. print(d)
Success #stdin #stdout 0.02s 7100KB
stdin
Standard input is empty
stdout
4
(1, 2, 3, 4, 5, 6, 7)
[1, 2, 0, 3, 4, 8, 'Sri', 4, 8, 9]
(4, 8, 9)
[4, 8, 9]