Question: 1.Write a function that will ask a user to input values to add to a list, when the user inputs done then stop asking the
1.Write a function that will ask a user to input values to add to a list, when the user inputs done then stop asking the user to add values to the list. Then search for the smallest and largest number in that list, then when you are done finding them , switch their position. After, print the list before it changed then print the list after it changed. When you are done ask the user if they would like to repeat the process again, if yes then repeat the process if not, then don't. *hint* to make a copy of a list you can edit is copy = original[:]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
