09. Files | Python Programming

Practise this topic with Python test papers, free to start: https://www.pytesthub.com

Lecture 9 of 14 in Python Programming, from Toppers Education Centre.
Week 5
Python 3, from a first script to classes, one worked example at a time.

with open(…), reading line by line, writing, encodings, pathlib, and why the file you wrote is empty.

CHAPTERS
0: 00 The question
0: 55 open, and read
2: 45 close, and with
4: 17 Writing
6: 06 Paths, the missing file, and encodings
8: 18 The answer
10: 00 Summary

WHAT THIS COVERS
– With open(…)
– Reading line by line
– Writing
– Encodings
– Pathlib
– And why the file you wrote is empty

Previous: 08. Strings
Next: 10. Lists

Full playlist: https://www.youtube.com/playlist?list=PLTKSUHKPbezo