Use open() to access a file and read its contents.
Use write mode to create or overwrite files.
Use append mode to add content without deleting existing data.
The with statement automatically handles closing files.
Handle missing files safely using try and except.
Create a file, write names, read them, and append a new name.
Ask the AI if you need help understanding or want to dive deeper in any topic