Oct-29-2021, 10:25 AM
Hello,
I'm trying to build a small program to find the highest value of a list. I tried this :
Any idea ?
Thank you
I'm trying to build a small program to find the highest value of a list. I tried this :
def nb_max(L):
maxi = L[0]
for x in [0,len(L)-1]:
if maxi<=L[x]:
maxi=L[x]
else :
pass
return maxiBut it doesn't work. I can't understand why....Any idea ?
Thank you
