9/13 Something of value


This is my code:

total = 0

for key in prices:
    print prices[key] * stock[key]
    total = total + prices[key] * stock[key]

and this is my error code:

Oops, try again. It looks like your code did not print the correct total.

What have I done wrong?


step 4 of the instructions:

Finally, outside your loop, print total

you need to print total to show the total amount


Oh, thank you. I didn't see that.