Loading...
Loading...
Loading...
A teacher enters three marks. Write low_high(a, b, c) that returns the smallest and the largest mark as two values. Print them on one line separated by a space.
Example
Input
72 95 60
Output
60 95
Smallest 60, largest 95.
Try the problem first. Open one hint at a time.
A function can return two values with return x, y.
Unpack them with low, high = low_high(...). The built-ins min and max do the work.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor