July 2022 Computing programming course by Teesside University
Worksheet 4: File I/O
[ASSESSMENT] Question 6: Moving the Years (moving_years.txt) Write a program that will combine the year associated with a car with its model number:
- Adapt your answer to question 5 to prepend the year to the model number instead of deleting it from the file completely. The resulting file should look like this: Hyundai 2006 Tucson Mitsubishi 2015 Outlander Ford 1998 Focus
Lecturer's comment: Excellent handling of dictionaries and file IO, very well done