I would like the user to be able to add items to a list. For example, if I was asking the user to create a shopping list of a certain length(user determines length), how do I do that? So far all I've been able to come up with is how to ask them the length of their list, but now I'm stuck
lengthOfList = int(input("How many items are in your list? "))
shoppingList = []
for i in range(lengthOfList):
shoppingList.append(i)