Is there any easy way or function to determine the greatest number in a python list? I could just code it, as I only have three numbers, however it would make the code a lot
Use max()
max()
>>> l = [1, 2, 5] >>> max(l) 5 >>>