def f(l): l1 = l l1.remove(max(l)) return max(l1) l = [1, 2, 3, 3]print f(l)
Standard input is empty
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!