For loops vs Max function for finding the largest number in a list in Python (Beginner)

前端 未结 0 1915
既然无缘
既然无缘 2021-01-13 13:21

What is the difference between these both? For loop and Max Function. Which one should I choose? For loop:

max = numbers[0]
for number in numbers:
    if numb         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题