Question: Write a PYTHON function called myMax which accepts a LIST of numbers and returns the maximum number in the list. Do NOT use Pythons built-in

Write a PYTHON function called myMax which accepts a LIST of numbers and returns the maximum number in the list. Do NOT use Pythons built-in function max.

Example: result = myMax([-999000, -1000000, -2000000]); print(result) #output is -999000

Example: result = myMax([1000000, 1000001, 1000002]); print(result) #output is 1000002

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!