Write a function maxval that accepts three integers a, b and c as
arguments. It should return the maximum among the three numbers.
Two or three of the arguments may be equal to each other, so remember to check for equality and not just for strict inequality.
You do not have to accept input from the user or print anything to the console. You just have to write the function definition.
Example
maxval(3, 7, 5) -> 7
maxval(5, 5, 5) -> 5
maxval(-3, -7, -3) -> -3
Implement this function:
def maxval(a, b, c):
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: a, b, c.
Input
3
7
5
Output
7