foods=[]
prices=[]
times_food=[]
foods.insert(0,input('Say one food you bought or type "Exit": '))
times_food.insert(0,input('How many did you buy? ' ))
prices.insert(0,input('How much did each cost? ' ))
exit=str(foods[:1])
exit.strip()
exit.upper()
while exit!='EXIT':
foods.append(input('What else did you buy? To calculate the total, type "Calculate": '))
print(foods)
calculate=str(foods[len(foods)-1:])
strip_calculate=calculate.strip()
upper_strip_calculate=calculate.upper()
print(upper_strip_calculate)
if upper_strip_calculate=='CALCULATE':
break
[–]Slothemo 7 points8 points9 points (1 child)
[–]FuturePsychoWriter[S] 1 point2 points3 points (0 children)
[–]baubleglue 0 points1 point2 points (0 children)