I need to write a function that takes a list of numbers as the parameter and returns the largest number in the list without using max()
.
I've tried:
def highestNumber(l):
myMax = 0
if myMax < l:
return myMax
return l
print highestNumber ([77,48,19,17,93,90])
...and a few other things that I can't remember. I just need to understand how to loop over elements in a list.