06Biggest of Three

    Very easyconditionsfunctions

    Write max_of_three(a, b, c) that returns the largest of the three numbers.

    Try it with if statements first. (Python's built-in max would also work, and that is fine too.)

    Examples

    Example 1
    >>> max_of_three(1, 2, 3)
    3
    Example 2
    >>> max_of_three(9, 4, 7)
    9

    Run examples checks the 2 examples above. Submit runs all 6 tests, including hidden edge cases, and marks the challenge solved.

    solution.py
    Loading Python…

    Test results show up here

    Write max_of_three in the editor, then run the examples. Use print() freely: its output is shown for each test.