+ 1
what is the alternative for using a max function? I do not want to use it and I need to find the largest number of user input
5 Respuestas
+ 4
You are welcomed :)
+ 3
Doing it yourself
Let's say user inputs are in a list named l :
maxi = None
if len(l):
maxi = l[0]
for i in range(1,len(l)):
if l[i] > maxi:
maxi = l[i]
+ 3
If you have questions about what I have done (and you have finished the part of the course that speak about it, as the tutorial is well explained), I will be glad to answer !
+ 1
Thank you for the answer! I'm a beginner and its so confusing to me but I'll try to figure it out.
0
Sure! Thank u so much