Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn essential Python file handling and exception management techniques in this comprehensive tutorial. Explore text file operations, including opening, reading, and writing modes with hands-on practice. Master adding text, counting characters, and using the readline function. Dive into exception handling with try-except blocks, incorporating else clauses and the finally keyword. Gain practical experience through guided exercises and real-world examples. By the end of this 1 hour 20 minute session, develop a solid foundation in Python file manipulation and error handling, enhancing your ability to write robust and efficient code.
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