A Day at the Supermarket Something of Value


#1

Please help


#2

I have tried using %f and %d but the problem is still the same


#3

on line 18 you have price[key] instead of prices[key]


#4

hey thanks but now my code is showing incorrect total


#5


#6

switch back to %s from %f


#7

you have to keep the previous result:
total = total + prices[key] + stock[key]
or
total += prices[key] + stock[key]


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.