Keeping track of the produce...Spot the difference


#1

I can not see a difference, honestly im not sure if there is one


#2

hopefully someone can figure this one out. I dont see any difference between the first and second pictures but for some reason one works and the other dosnt

working

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

non working

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


#3

ohhh i got it its the capital S in "stock" for some reason it matters that its the same


#4

Because it is a computer, and computers are very literal. Also, "S" is not the same to them as "s". So, because of that, "Stock: %s" is not the same as "stock: %s"


#5

But that isn't enough to throw an error.
Okay, maybe there's an instruction where he should use "stock" other than "Stock" for some reason but that shouldn't really be a reason for that.