File Handling
Opening and Closing Files
open() function, file modes, and proper cleanup
Reading Files
read, readline, readlines, and iteration methods
Writing Files
write, writelines, and file output patterns
File Modes
Understanding r, w, a, b, x, and + modes
with Statement for Files
Context managers and the with statement for safe, automatic resource cleanup when working with files and other resources.
Binary Files
Reading and writing non-text data (images, audio, serialized objects) using binary mode and the struct module for precise byte-level control.
JSON Files
Comprehensive JSON handling in Python — serialization, deserialization, custom encoders/decoders, working with JSON Lines, and streaming large JSON data.
CSV Files
Comprehensive CSV handling — reader/writer, DictReader/DictWriter, custom dialects, and processing large CSV files efficiently.
pathlib Module
Modern, object-oriented filesystem path manipulation — path construction, file operations, directory traversal, and glob patterns using the pathlib module.