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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!