displays the price twice for some reason
prices = []
total = 0
while True:
food = input("enter a food item (q to quit) : ")
if food.lower() == "q":
break
else:
price = float(input(f"please enter the price of {food} : "))
foods.append(food)
prices.append(price)
print("-------- YOUR CART --------")
for food in foods:
print(food,end=" ")
for price in prices:
total = total + price
print(f"your total is {total}DHS")```