Files and data
4 lessons in the Python course.
Full Python course · Search this topic · Programming
- Reading Text FilesRead complete files or process text one line at a time with safe closing.
- Writing Text FilesCreate, overwrite, and append UTF-8 text files safely in Python.
- Working with PathsBuild, inspect, create, and list filesystem paths with pathlib.
- Reading and Writing JSONConvert between Python values and JSON text or files using the standard library.