You want to go shopping for computers and electronics. Create two lists. One for the name of the items and other for the cost of the items.
shopping_list = []
shopping_cost = []
done = False
while not done:
print("Shopping Program")
print("S - Shop")
print("P - Purchase")
print("C - Checkout")
print("Q - Quit")
choice = input("Choice: ")
if choice == "S":
print("Items available to purchase")
print("Animal Crossing $59.99")
print("Skullcandy Headphones $29.99")
print("Beats by Dr Dre $199.99")
print("HP 15.6\" touchscreen laptop $499.99")
print("ASUS 14\" touchscreen laptop $599.99")
print("Samsung 13.3\" touchscreen laptop $849.99")
print("HP ENVY x360 $799.99")
elif choice == "P":
for x in range(3):
add_shopping_list = input("Name of Item: ")
shopping_list.append(add_shopping_list)
add_shopping_cost = float(input("Cost of Item: "))
shopping_cost.append(add_shopping_cost)
elif choice == "C":
print("Items Purchased")
for x in shopping_list:
print(x)
print("Total: ",sum(shopping_cost))
elif choice == "Q":
print("Quitting")
done = False
else:
print("Invalid Choice")