How do I find the maximum of 2 numbers? How do I find the maximum of 2 numbers? python python

How do I find the maximum of 2 numbers?


Use the builtin function max.

Example: max(2, 4) returns 4.

Just for giggles, there's a min as well...should you need it. :P


max(number_one, number_two)