Let's talk about file modes in Python.
The default mode when you open a file is
rt for read mode:
with open("my_file.txt") as f: ...
This is a premium screencast available only to active Python Morsels subscribers or users with a redemption code that provides screencast access.
You can find free screencasts on the screencasts page.
Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.