def main():
COUNT = 1
food = []
n = int(input("Enter the number of items on your grocery list.\n"))
for i in range(1, n+1):
food.append = (input("What is item #" + str(COUNT) + " on your list?\n", sep=""))
COUNT = COUNT + 1
main()
I'm trying to add the user's input to the "food" list. So far I have this but when I run it, it gives me a error: TypeError: input() takes no keyword arguments
any suggestions?
COUNT
, insteadi
can be used in place ofCOUNT
. – Leonardo Sep 25 '13 at 2:05