fork download
  1. # your code goes here
  2. list = [5, 4, 3, 2, 1]
  3. print(list[-2])
Success #stdin #stdout 0.04s 9640KB
stdin
Standard input is empty
stdout
2