Question: Use python. Make sure all test cases work Function name: minmax Parameters: nums (list) Returns: tuple Description: Write a function that takes in a list

Use python. Make sure all test cases work
 Use python. Make sure all test cases work Function name: minmax

Function name: minmax Parameters: nums (list) Returns: tuple Description: Write a function that takes in a list of ints and floats. Return a tuple of the (minimum, maximum). If an empty list is passed in, return an empty tuple. You may not create helper functions or use built in functions such as min), max), sort(), or sorted(). You cannot use any loops, and you must use recursion >> print (minmax([5,0,7,301,50])) (e, 301) >>> print (minmax ([1,2,3,4,4,4,5]))

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!