Mar-27-2017, 10:47 PM
Traceback (most recent call last):
File "auction.py", line 35, in <module>
items.append[(item_number, item_name, item_price)]
TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
this is the error i get
i have entered the items.append to the end if an if statement so when the user chooses to add an item they will be asked for the info for that item
i have also defined a variable items = [()]
is the above variable needed in this way
my thought was to reserve space for the user input
File "auction.py", line 35, in <module>
items.append[(item_number, item_name, item_price)]
TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
this is the error i get
i have entered the items.append to the end if an if statement so when the user chooses to add an item they will be asked for the info for that item
i have also defined a variable items = [()]
is the above variable needed in this way
my thought was to reserve space for the user input