To round out your introduction to programming with Python, in this course, you'll manage files and directories through code. You'll also perform basic exception handling to gracefully address issues in your code.

Intro to Python: File Processing and Exception Handling

Intro to Python: File Processing and Exception Handling
This course is part of Introduction to Programming with Python Specialization

Instructor: Bill Rosenthal
Access provided by Barbados NTI
19 reviews
What you'll learn
Open, read, write, and close text files using various access modes and built-in function methods to manipulate persistent text data.
Traverse and manage directory contents, modify paths, and copy or delete entire file trees using the os, pathlib, and shutil modules.
Implement robust error handling strategies using try-except blocks, ordered exception hierarchies, and specialized custom exceptions.
Data files for this course are provided in the first course of this specialization, "Intro to Python: Setup and Data Processing".
Skills you'll gain
Tools you'll learn
Details to know

Add to your LinkedIn profile
1 assignment
January 2026
See how employees at top companies are mastering in-demand skills

Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate

There are 3 modules in this course
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor

Offered by
Why people choose Coursera for their career

Felipe M.

Jennifer J.

Larry W.

Chaitanya A.
Explore more from Computer Science

Logical Operations

Logical Operations


