Question
can someone help solve this code?
program that keeps asking the user for new values to be added to a list
until the user enters 'exit' ('exit' should NOT be added to the list). These values entered by the user are added to a list we call 'initial_list'. Then theres a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. Finally, inside main(), print out all of the values in the new list.
Top Answer
Your required code is - def new_list (initial_list) : newlist = [] for item in initial_list: ... View the full answer