You should have exactly three print statements! But I do have three print statements!


#1
price={'banana':4,
    'apple':2, 
    'orange':1.5, 
    'pear':3
    }
stock={}
stock['banana']=6
stock['apple']=0
stock['orange']=32
stock['pear']=15

#print price
#print stock

for key in price: 
    print key
    print 'Price: %s' % price[key]
    print 'Stock: %s' % stock[key]

So I realize that how I input values into stock wasn't the best way but it works. When I run the code I keep getting an error that says " You should have exactly three print statements!". What am I doing wrong?


#2

I resolved the problem, when i had #print price and #print stock for some reason they were still being counted as print statements even though they were #d.