Question: Define a maximum function that determines and returns the largest of three values, calls the function three times with integers, floating-point numbers, and strings, respectively
Define a maximum function that determines and returns the largest of three values, calls the function three times with integers, floating-point numbers, and strings, respectively and print out the results.
For example:
maximum (15, 20, 36)
output is: 36
maximum (12,3, 17.8, 1.5)
output is: 17.8
maximum (apple, orange, banana)
output is: orange
Python please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
