I have to write a program that asks the user to enter their shopping list, it should ask them to enter their first item for their list and to enter 'END' when they have entered all of their items.
This is my code so far:
#Welcome
name = input("What is your name? ")
print("Welcome %s to your shopping list" %name)
#Adding to the list
shoppingList = []
shoppingList.append = input(print("Please enter the first item of your shopping list and type END when you have entered all of your items: "))
length = len(shoppingList)
#Output
print("Your shopping list is", length, "items long")
shoppingList.sort
print(shoppingList)
I'm not to sure how to fix the adding to the list second, could you help? Thanks.