SyntaxFix
Write A Post
Hire A Developer
Questions
Use a for loop that ranges through all keys in prices:
prices
for key, value in prices.items(): print key print "price: %s" %value
Make sure that you change prices.items() to prices.iteritems() if you're using Python 2.x
prices.items()
prices.iteritems()