How do I append a list based on user input? I have made a menu and used ifelif statements. When running the script I select "2" to add a name to the list, after inputting the name, I press "1" to display the list. No matter how many names I add I am only able too to view the last inputted name.
**menu = """
mylist = ['Nick', 'Robert', 'Deondre,']
while True:
selection = input(menu).strip()
if selection == "0":
print("Thank you for using guest list manager.")
break
elif selection == "1":
print("List of guests.\n")
print(mylist)
elif selection == "2":
mylist = input('Please enter a name to be added: ')
elif selection == "3":
mylist = input("Please enter a name to be deleted: ")
mylist.append(mylist)
else:
print("Please select 0, 1, 2, or 3")**