fork download
  1. lst = [1, 2, 3, 4]
  2. lst = lst[-3:-2]
  3. lst = lst[-1]
  4. print(lst)
Success #stdin #stdout 0.08s 14140KB
stdin
Standard input is empty
stdout
2