Question: Python Programming: Create a function called smallLarge that will search through a list and produce the smallest and largest value in the list. This function
Python Programming:
Create a function called smallLarge that will search through a list and produce the smallest and largest value in the list. This function should take as input the list to search through and nothing else. The function should return the smallest and largest values as a tuple.
You must use a for loop to solve this problem. You should also prime the loop properly.
Not Allowed
No print statements within the smallLarge function
No input statements within the smallLarge function
No global variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
