Question: The function is to be coded in python: Function name: minmax Parameters: nums (list) Returns: tuple Description: Write a function that takes in a list
The function is to be coded in python:
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])) (0, 301) >>> print(minmax([1,2,3,4,4,4,5]))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
