Published
- 1 min read
return maximum of three values in python
The solution for this is noted below
return maximum of three values in python
Solution
def maximum(a,b,c):
max_val = a
if b > max_val:
max_val = b
if c > max_val:
max_val = c
return max_val
Try other methods by searching on the site. That is if this doesn’t work