Situatie
The max() function returns the largest item in an iterable. It can also be used to find the largest item between two or more parameters.
Solutie
Pasi de urmat
number = [3, 2, 8, 5, 10, 6]
largest_number = max(number);
print(“The largest number is:”, largest_number)
Output:
The largest number is: 10
Leave A Comment?