fork download
  1. a = [1,2,3,9,9,2,3,4,6,5,7,8,5,6]
  2. a.sort()
  3. print a
  4. print a[-2]
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
[1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 9, 9]
9