Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

Show algebraically that b 2 n1Pni 1(Xi )2 (Xn )2.

Answered: 1 week ago