fork download
  1. # your code goes here
  2.  
  3. find_max2 = lambda a: max(filter(max(a).__ne__,a))
  4.  
  5. l = [1, 2, 3, 4, 5]
  6. print find_max2(l)
Runtime error #stdin #stdout #stderr 0.02s 9016KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 6, in <module>
  File "prog.py", line 3, in <lambda>
AttributeError: 'int' object has no attribute '__ne__'