Перейти к содержимому

Python for Beginners Ep 9 - Files: open, read, write, with | CodeGurukul

CodeGurukul

0:00 / 0:00

Python for Beginners Ep 9 - Files: open, read, write, with | CodeGurukul

3 просмотра · 7 дн. назад
CodeGurukul
5 подписчиков
3 просмотра · 7 дн. назад
Python for Beginners - Episode 9 (English). Working with files: why data in variables disappears, open and close, relative paths, the with statement, read, looping over lines, strip, writing with mode w, why write adds no newline, appending with mode a, file modes, writing many lines, utf-8 encoding, handling a missing file with FileNotFoundError, pathlib exists and Path, read_text and write_text, counting words, a saved to-do list with save and load, a full load-change-save cycle, what with really does, common file mistakes, and a notebook practice project. Previous: Ep 8 Exceptions. Try the notebook practice project yourself before moving on. All code runs in Python 3.9+. CodeGurukul - learn programming and AI step by step. #Python #PythonForBeginners #PythonFiles #LearnPython #CodeGurukul