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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started