Before you can read from a file, you need to open it. Opening a file in Python couldn’t be easier:

Get hands-on with 1400+ tech skills courses.