Loading...
Loading...
Loading...
A dashboard compares two order amounts. Write a function larger(a, b) that returns the bigger amount, without using the built-in max. Print it.
Example
Input
15 25
Output
25
The second is larger.
Try the problem first. Open one hint at a time.
Compare the two values with > and return one of them.
A conditional expression a if a > b else b is one short way to write it.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor