Python Tutorial - 13. Reading/Writing Files

Опубликовано: 15 September 2026
на канале: codebasics
245,341
2.8k

In this python tutorial, we will clarify about reading/ writing files, how to work with a file, how to open, create and close a file, use of “functions”, “modules” and “flags”.

Code used in this tutorial: https://github.com/codebasics/py/blob...
Exercise: https://github.com/codebasics/py/blob...

Topics that are covered in this Python Video:
0:00 Overview
0:32 Open() function
1:35 write() function
1:51 close() function
2:54 append mode in a file
4:06 read from a file
5:10 read mode in a file
5:35 read() function
7:19 Split() function
11:50 File opening modes
13:23 with statement
14:16 close Flag in file

Do you want to learn technology from me? Check https://resources.codebasics.io/y6UTAl for my affordable video courses.

Next Video:
14. if _name_ == "__main__":    • 14. if __name__ == "__main__" [Python 3 Pr...  

Website: https://resources.codebasics.io/y6UTAl
Facebook:   / codebasicshub  
Twitter:   / codebasicshub