Question: Write a program that keeps asking the user for new values to be added to a list unl the user enters exit rexit should NOT

 Write a program that keeps asking the user for new values

Write a program that keeps asking the user for new values to be added to a list unl the user enters exit rexit should NOT be added to the list. These values entered by the user are added to a ist we call ? itiaUst Then write a tu ction that takes this nnel ist as input and returns another ist wth 3 copies of every value in the nt al ist Financ nside man 1 prt out all of the values in the new list For example Input Enner value to be added to list a Enter value to be added to list b Enter value to be added to list c Enter value to be added to list ext Output Note how exit is NOT added to the list Also, your program needs to be able to handle any variation of exit such as Exit, ExxT etc and beat them all as exit ode code.py New 4 def main): input str input('Enter value to be added to list: ) 7 new list new_list function(initial_list) 9 main() 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!