Hey guys, I have a question… The code is simple but I dont understand why the output starts with orange in the console. Does Python start with floats at first??? Have a look. Thanks.
prices = {"banana": 4, "apple": 2, "orange": 1.5, "pear": 3}
stock = {"banana":6, "apple":0, "orange": 32, "pear": 15}
for x in prices:
print x
print "price: " + str(prices[x])
print "stock: " + str(stock[x])