defminmax(s): with defining two variables at the beginning. Do not use the built in max or min functions “””Return the minimum and maximum elements of a non-empty list. Hint: start >>> minmax([1, 2, -3]) [-3, 2] >>> x = minmax([2]) >>> x [2, 2] >>> minmax([4, 5, 4, 5, 1, 9, 0, 7]) [0, 9] >>> minmax([100, -10, 1, 0, 10, -100]) [-100, 100] “”” “*** YOUR CODE HERE ***”
defminmax(s): with defining two variables at the beginning. Do not use the built in max or min functions “””Return the minimum and maximum elements of a non-empty list. Hint: start >>> minmax([1, 2, -3]) [-3, 2] >>> x = minmax([2]) >>> x [2, 2] >>> minmax([4, 5, 4, 5, 1, 9, 0, 7]) [0, 9] […]