Question: DFE.py The program must follow this order 1. Wrapped in a try/except block, attempt to open the file information.txt. Print out that the file

DFE.py The program must follow this order 1. Wrapped in a try/except 

DFE.py The program must follow this order 1. Wrapped in a try/except block, attempt to open the file "information.txt". Print out that the file is not found when it throws an error [30%] 2. Create a dictionary with the keys "a", "b", "c" with the respective values of 1, 2, 3 [10%] 3. Using the json library, write the dictionary to "information.txt" (hint: Use the dump method) [25%] 4. Using the json library, read the dictionary from "information.txt" into a new variable (hint: Use the load method) [258] 5. Print out the new variable [108] Activate Wi

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a stepbystep solution to the problem Step 1 Handle File Not Found Error Using TryExcept We nee... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!