fork download
  1. a = [7,8,[[9,8],[2,6], 7], [11], [[7,9,[12,15],3]]]
  2.  
  3. def find_max(my_list):
  4. m = max([find_max(x) if type(x) is list else x for x in my_list])
  5. return m
  6.  
  7. print(find_max(a))
Success #stdin #stdout 0.02s 8736KB
stdin
Standard input is empty
stdout
15