+ 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

11th Sep 2017, 9:24 AM
Mai Aljuaid
Mai Aljuaid - avatar
5 Respostas
+ 4
You are welcomed :)
11th Sep 2017, 9:31 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 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]
11th Sep 2017, 9:27 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 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 !
11th Sep 2017, 9:29 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
Thank you for the answer! I'm a beginner and its so confusing to me but I'll try to figure it out.
11th Sep 2017, 9:28 AM
Mai Aljuaid
Mai Aljuaid - avatar
0
Sure! Thank u so much
11th Sep 2017, 9:31 AM
Mai Aljuaid
Mai Aljuaid - avatar