Answer:
def new_list_function(initial_list):
new_list = initial_list*3
return new_list
def main():
initial_list = []
while True:
item = input("Enter value to be added to list: ")
item = item.rstrip()
if item.lower() == "exit" and "EXIT" and "Exit":
break
initial_list.append(item)
new_list = new_list_function(initial_list)
for item in new_list:
print(item)
main()
Explanation: