Title: Python Program to Update Car Dictionary
Given two files, "dict_car1.txt" and "dict_car2.txt", the program reads the contents of "dict_car1.txt" into a dictionary. It then uses the information from "dict_car2.txt" to update the values in the dictionary. The updated dictionary is then written to a file called "dict_car3.txt". The program utilizes try, except, and finally blocks whenever a file is opened. Only the methods and materials taught in the curriculum are used.
Sample Run of the Program:
Dictionary from dict_car1:
brand: Ford
model: Mustang
year: 2021
Dictionary after being updated from dict_car2:
brand: Honda
model: Civic
year: 2021
Output file: dict_car3.txt
brand: Honda
model: Civic
year: 2021