Logical Operations

Intro to Python: File Processing and Exception Handling

Logical Operations

Intro to Python: File Processing and Exception Handling

Bill Rosenthal

Instructor: Bill Rosenthal

Access provided by University of Mostar

19 reviews

Flexible schedule
Learn at your own pace

19 reviews

Flexible schedule
Learn at your own pace

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".

Details to know

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the Introduction to Programming with Python Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • 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

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Explore more from Computer Science