How to find the maximum of 2 numbers?
value = -9999 run = problem.getscore()
I need to compare the 2 values i.e value and
value
numberList=[16,19,42,43,74,66] largest = numberList[0] for num2 in numberList: if num2 > largest: largest=num2 print(largest)
gives largest number out of the numberslist without using a Max statement