Finding The Largest Number in a Nested List in Python

后端 未结 5 1492
我在风中等你
我在风中等你 2021-01-17 07:11

I would like to put the max number(s) to a new array, I\'ve tried every thing that I can think of and none seem to work....(adding to an empty result array, concat, etc)

5条回答
  •  无人及你
    2021-01-17 07:15

    Wow, folks are harsh today. I think that I understood your question;

    new_list = [max(i) for i in list]
    for k in new_list:
         print (k)
    

提交回复
热议问题