Iterating over dictionaries
I wrote this code but when I run it , it shows all the prices with added price of previous thing like total of lasagna is 42 and total of spaghetti is 28.8 so instead 28.8 it shows 70.8 (lasagna + spaghetti) and when I remove money_ spent from money_ spent + prices(i) * quantity(i) it shows correct price sperately but the problem is according to the code written in value same code I written but it's not showing total value as like in the video please help
Thanks for reaching out!
Can you please provide a screenshot of the code you've executed and the error message you've encountered? This can help us assist you better.
Looking forward to your answer.
I'm so sorry sir I provided screenshot with all my questions but I don't know why that Is not showing