In this lesson, we'll cover:
1) How to work with files in Python?
2) Why is it necessary to close a file?
3) Basic file modes
4) Why is the with open construct so useful?
LINKS:
The lesson assignment will be posted on Telegram:
https://t.me/ITstudy_Girl
Python course on Stepik:
https://stepik.org/course/253447
Support the channel:
https://yoomoney.ru/to/4100119445649159
Table of Contents:
00:00 Introduction
00:21 The open function
01:00 File opened for reading
03:15 File opened for writing
06:22 Basic file handling modes
07:29 Why it's better to use the with open construct
10:06 Implementing a file handling program using a real-world example
11:51 Problem
12:06 Conclusion