I am stuck on these 2 questions. Can someone help me please?

6) Write a Python code to save the following dictionary in a CSV file.
dict = {1: "Hello", 2: "Hi", 3:"bye"]

7) Write a Python code to read the CSV file generated in the previous step
(1) to a Python dictionary.​

Respuesta :

Answer:

My answer could not be submitted because of some signs and symbols in my solution.

So, I've added the answer and a comprehensive explanation as an attachment.

Note that the question is answered using Python programming language.

Explanation:

Lines that start with # are used to explain the program

See attachment

Ver imagen MrRoyal