fork download
  1. # your code goes here
  2.  
  3. var = [1, 2, 3]
  4. print(var[1])
  5. print(var[-1])
  6. print(var[:-1])
Success #stdin #stdout 0.02s 28384KB
stdin
Standard input is empty
stdout
2
3
[1, 2]