myList=[1,2,3,5]
def findMax(aList):
biggest = aList[0]
for value in aList:
if value > biggest:
biggest = value
return biggest
This code searches for the largest number in a list.
How would I change this into a while loop, rather than a for loop?