fork download
  1. # your code goes here
  2. a = [1,1]
  3.  
  4. b = list(set(a))
  5. b.sort()
  6. b[-2]
Runtime error #stdin #stdout #stderr 0.01s 9016KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 6, in <module>
IndexError: list index out of range