Jan-06-2020, 12:20 AM
I am trying to make a 'inventory' type app...
i have it working like i want it to work, adding name of item and serial number of item, but i am trying to add an item and keep getting errors...
if you can look at this and tell me how to change it to view the added item
I now have it where it will input the added information in the csv file, but now i can't view it... i can change the 'item[]' or even add an 'item[]' but it states out of range. i think i should simply be able to change the line 'for i in range(0, len(items)):
but can't seem to make it work...
thanks for the help
i have it working like i want it to work, adding name of item and serial number of item, but i am trying to add an item and keep getting errors...
if you can look at this and tell me how to change it to view the added item
def list_items(items): for i in range(0, len(items)): item = items[i] print(str(i+1) + ". " + item[0] + " (" + str(item[1]) + ")")Thanks in advance
I now have it where it will input the added information in the csv file, but now i can't view it... i can change the 'item[]' or even add an 'item[]' but it states out of range. i think i should simply be able to change the line 'for i in range(0, len(items)):
but can't seem to make it work...
thanks for the help