Question: Write a Python function (findMinAndMax) that, given a list of values (values), returns a tuple containing the minimum value and the maximum value. Note:
Write a Python function (findMinAndMax) that, given a list of values (values), returns a tuple containing the minimum value and the maximum value. Note: Do not use predefined min() or max() functions. No partial mark will be allocated. Sample Code: find MinAndMax([4,1,21,-7,9,13]) Expected output: (-7, 21) findMinAndMax([-2,4,7,3,5,11,2,9]) Expected output: (-2, 11) find MinAndMax([7,10,4,30,-17,52]) Expected output: (-17, 52) Activate Windows
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
def findMinAndMax values inputEnter values separated by space... View full answer
Get step-by-step solutions from verified subject matter experts
