I am trying to create a simple product inventory using python but for some reason the if statement won't run and I don't know what's wrong. Below is the output and inputs of the code.
#Code
def inventory_products():
choice = str(input("What do you want to do? \nEnter Add item, Quantity, Show Inventory:"))
if choice == 'Add item':
input("Enter name")
inventory_products()
#Output
What do you want to do?
Enter Add item, Quantity, Show Inventory:Add item
Process finished with exit code 0
Aucun commentaire:
Enregistrer un commentaire