The answer is: max() !
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()
max(number_one, number_two)
You can use max(value, run)
The function max takes any number of arguments, or (alternatively) an iterable, and returns the maximum value.
max(value,run)
should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With