What is wrong with this code?


#1

Code:
prices = {
** "banana" : 4,**
** "apple" : 2,**
** "orange" : 15,**
** "pear" : 3 **
}
** **
stock = {
** **
** "banana" : 6,**
** "apple" : 0,**
** "orange" : 32 ,**
** "pear" : 15 **
}
** **
for key in prices:
** print " %s" % key**
** print "price: %s" % prices[key]**
** print "stock: %s" % stock[key]**

It insists on the following message : " Oops, try again. Check what your code prints for orange. It doesn't look quite right" .

The result of my code is:
orange
price: 15
stock: 32
** pear**
price: 3
stock: 15
** banana**
price: 4
stock: 6
** apple**
price: 2
stock: 0
None


The link : https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096


Replace this line with your code.


#3

@scriptace07840,
If during the course
you get an Oops-message,
this is generated by the course-checker,
and in this case the question is......
what does an "orange" =cost= ???/


#4

Assume the code-checker a moron and have understanding for its mot-a-mot interpretation: the problem is that, it expects the labels ("price: " and "stock: ") all lowercase and if you God-forbid! write the first letters uppercase ("Price: " and "Stock: "), it keeps you in this Oopps! endless loop without any clue about the "problem!"..

It made me lose time for nothing:( dont you guys..