Last answered:

21 Sept 2023

Posted on:

15 Sept 2023

0

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

3 answers ( 0 marked as helpful)
Instructor
Posted on:

15 Sept 2023

0

Hi Ambuj!

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.

Best,

Ivan

Posted on:

16 Sept 2023

0

I'm so sorry sir I provided screenshot with all my questions but I don't know why that Is not showing

Instructor
Posted on:

21 Sept 2023

0

Hi Ambuj!
Thanks for reaching out.


Could you please try uploading the screenshot again or share the code as a post? It seems that there is some issue with the upload. Thank you.


Best,
Tsvetelin

Submit an answer