How to get the maximum of two numbers in Python

The maximum of two numbers is the greater of the two. For example, the maximum of 1 and 2 is 2.

Solution for How to get the maximum of two numbers in Python : You can use max() to get the maximum of two numbers Call max(*args) with two numbers as *args to return the maximum of the two.


how-to-get-the-maximum-of-two-numbers-in-python