Please there is someone could explain me why is not the same?
in learning python chapter 5/9 (something to value)
my code is
total = 0 for key in prices: a = prices[key1]*stock[key1] print a total = total + a print total
the solution is
total = 0 for food in prices: print prices[food] * stock[food] total = total + prices[food] * stock[food] print total
Thanks a lot