Skip to main content

Reading and Writing Files with Python

Hands-On Lab

 

Photo of Keith Thompson

Keith Thompson

DevOps Training Architect II in Content

Length

00:45:00

Difficulty

Intermediate

Files are used for many things in programming, including storing and reading data as well as writing to the screen. In this hands-on lab, we'll add a way to read and store information about custom classes, using a file as a flat database for our employee information. To feel comfortable completing this lab, you'll want to know how to read and write to files (watch the "Interacting with Files" video from the Certified Associate in Python Programming Certification course), use class methods (watch the "Custom Constructors, Class Methods, and Decorators" video from the Certified Associate in Python Programming Certification course), and create and use class instances (watch the "Creating and Using Python Classes" video from the Certified Associate in Python Programming Certification course).

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.