9/13 Something of value


#1



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?


#2

step 4 of the instructions:

Finally, outside your loop, print total

you need to print total to show the total amount


#3

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


#4