1. Engineering
  2. Computer Science
  3. question 1a upper and lower bounds 2 points the upper...

Question: question 1a upper and lower bounds 2 points the upper...

Question details

Question 1a: Upper and Lower bounds (2 points) The upper bound (and lower bound) of a list of numbers is the largest (and lowest number in the list. Write a Python function bound(L) that takes non-empty list L and returns its bound as a tuple. See the test cases for examples In 1201: def bound(L) min val -min(L) max val max(L) b-([min value, max value]) return 1b # Your code here
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution