Simple play icon Course

Working with Files in Python 3

by Ed Freitas

Manipulating files and folders are essential aspects of working with Python. This course teaches you how to apply the most useful and common file and folder operations available with the standard library and can be created using Python.

What you'll learn

The Python standard library has several built-in modules which contain a series of functions for handling files and are part of several modules, such as os, path, shutil, and pathlib. The Python standard library is among the top libraries that every Python developer must know and master. In this course, Working with Files in Python 3, you’ll learn the skills and practices you need to work and manipulate files and folders in Python easily. First, you’ll explore how to find files in Python by using string methods and pattern-matching techniques. Next, you’ll discover how to perform various file and folder operations, such as copying, moving, renaming, deleting, archiving, traversing, and more. Finally, you’ll learn how to read and write text, CSV, XML, JSON, and Pickle files, some of the most common existing file types. When you’re finished with this course, you’ll have the skills and knowledge of Working with Files in Python 3 needed to work successfully with files and folders using Python.

About the author

Eduardo is a technology enthusiast, software architect and customer success advocate. He's designed enterprise .NET solutions that extract, validate and automate critical business processes such as Accounts Payable and Mailroom solutions for all types of organizations. He's designed and supported production systems for global names such as Coca Cola, Enel, Pirelli, Fiat-Chrysler, Xerox and many others. He's a well-known specialist in the Enterprise Content Management market segment, specifically... more

Ready to upskill? Get started