Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Maximum Among Three by kanendoc
def max_of_three(a: int, b: int, c: int) -> int:
# your code here
return max(a, b, c)
print("Example:")
print(max_of_three(1, 2, 3))
# These "asserts" are used for self-checking
assert max_of_three(1, 2, 3) == 3
assert max_of_three(3, 2, 1) == 3
assert max_of_three(1, 3, 2) == 3
assert max_of_three(0, 0, 0) == 0
assert max_of_three(-1, -2, -3) == -1
assert max_of_three(5, 5, 4) == 5
assert max_of_three(-5, -5, -6) == -5
assert max_of_three(10, 9, 10) == 10
assert max_of_three(123, 456, 789) == 789
assert max_of_three(789, 123, 456) == 789
print("The mission is done! Click 'Check Solution' to earn rewards!")
Oct. 6, 2024