Numbers and arithmetic · Python exercise
Find the largest of three integers without sorting.
Read three integers, one per line, and print the largest value. If several values tie, print that value once.
Example 1
Input
3 9 4
Output
9
Example 2
Input
7 7 7
Output
7
All three values are equal.
How testing works
Your code runs once per test case with that case's standard input. Output is compared after normalising trailing spaces and blank lines at the end. Use input() without a prompt when the exercise expects clean output.
Loading editor…
Press Run tests to execute your code against every input case. Python runs in a Web Worker in your browser.