Orange print


#1

My code runs but will not pass the checker, how do i fix please. Checked the above but still have the issue.

prices = {"banana":4,
"apple":2,
"orange":1.5,
"pear":3}

stock = {"banana":6,
"apple":0,
"orange":32,
"pear":15}

for key in prices:
print key
print "price:", prices[key]
print "stock:", stock[key]


Problem with Orange. i have tried everything. Nothing works
#2

you can't use , in print. It causes problems with the validation, use %s instead.


#3

This does not work at all

for key in prices:
print key
print "price:" %s prices[key]
print "stock:" %s stock[key]


#4

This code work but i still get the issue with orange..

for key in prices:
print key
print "price:%s" % prices[key]
print "stock:%s" % stock[key]


#5

a space between price: and %s is required


#6

As simple as that! thanks....


#7