How to find the maximum of 2 numbers?
value = -9999
run = problem.getscore()
I need to compare the 2 values i.e value and run and find the maximum of 2. I need some python function to operate it?
How to find the maximum of 2 numbers?
value = -9999
run = problem.getscore()
I need to compare the 2 values i.e value and run and find the maximum of 2. I need some python function to operate it?
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
Just for the fun of it, after the party has finished and the horse bolted.
The answer is: max() !