easy +5 pts

Min of three numbers

Find the smallest among three given integers.

Implement a function `min_of_three(a, b, c)` that takes three integers `a`, `b`, and `c` and returns the smallest of them. Do not use the built-in `min()` function; use comparisons or logical conditions.

Constraints

Inputs are integers between -1000 and 1000.

Example

>>> min_of_three(3, 1, 2)
1
>>> min_of_three(-5, -2, -10)
-10
5 points ~5 min

Recent Submissions

No submissions yet — hit Run Tests to try!

Hints

Compare a and b first to find the smaller.
Then compare that result with c.
You can use nested conditional expressions.
Python 3
All tests passed!
Test Results
Press Ctrl+Enter or click Run Tests to execute your code.