fork download
  1. A = [45, 25, 30, 20, -40]
  2. print(A[:3])
  3.  
  4. A = [45, 25, 30, 20, -40]
  5. print(A[3:])
Success #stdin #stdout 0.11s 14048KB
stdin
Standard input is empty
stdout
[45, 25, 30]
[20, -40]