From the course: Python Practice: Real-World Coding Challenges
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Single file - Python Tutorial
From the course: Python Practice: Real-World Coding Challenges
Challenge: Single file
(bright music) - In a previous challenge, we looked at creating and running terminal scribes from data structures like dictionaries and lists. Now obviously dictionaries and lists can be written to files. You can also load them from files. So it's theoretically possible to create canvases and scribes that can be saved as files and loaded from files. For example, if you want to send a particularly interesting set of scribes to run to a friend, you just send them your file, which could be opened by this program. And not only is this theoretically possible, but we are going to do it in this challenge. So I've given you a headstart and created a fromDict and toDict method, on both the Canvas and the terminal scribe classes. Now it's not that I doubt your Python skills, but I just wanted to make sure that it was written in such a way that it would handle any classes that extend from the parent class smoothly. Let's go…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.