Question: Problem 5 Given a list a, the max function in Python's standard library computes the largest element in a: max(a) . Similarly, min(a) returns the

 Problem 5 Given a list a, the max function in Python's

Problem 5 Given a list a, the max function in Python's standard library computes the largest element in a: max(a) . Similarly, min(a) returns the smallest element in a . Write your own my_max and my_min functions. In [ ]: # YOUR CODE HERE raise Not ImplementedError() In [ ]: # YOUR CODE HERE raise Not ImplementedError() In [ ]: a = [0.28197719, 0.59580708, 0.54095388, 0.44264927, 0.12360858, 0.3067179, 0.33002426, 0.43553806, 0.14259775, 0.01909447] assert_equal(my_max(a), max(a)) assert_equal(my_min(a), min(a))

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!