SCT error A day at the supermarket 8/13


#1

Hi , got this error last night and have been stuck ever since

It first used to be a sct error and after fiddeling around with the code it changed to “check what you’re code prints for Orange”.
Like anyone i searched the forums a bit and did the following . Try another browser , changed all letter to lower case, used two diffrent methods for printing out the price and stock value.
Sadly none of the above seem to be working.

price = {
“banana” : 4,
“apple” : 2,
“orange” : 1.5,
“pear” : 3
}
stock = {
“banana”: 6,
“apple”: 0,
“orange”: 32,
“pear”: 15}
for key in price:
print (key)
print “price” + " " + str(price[key])
print “stock” + " " + str(stock[key])


#2

Nevermind i finally found it -_- .
problem was the forgetting the : after “price” and “stock”


#3

Spot on!

Happy coding and debugging. :wink: :wink:


#4

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