Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Exception and File Handling in Python

Great Learning via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course demonstrates how to work with text files in Python, including opening, reading, writing, appending, and reading lines. It also introduces exception handling with try, except, else, and finally through hands-on exercises.

Syllabus

Introduction.
Dealing with Text files.
Open, read and write modes.
Hands-on for Open, read and write modes.
Adding text and Counting Characters.
Hands-on for len and append functions.
Readline Function.
Hands-on for Readline Function.
Try and Except.
Hands-on Try and Except.
Try with Else Clause.
Hands-on Try and Except with Else clause.
Finally Keyword.
Hands-on for Finally keyword.
Summary.

Taught by

Great Learning

Reviews

Start your review of Exception and File Handling in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.