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 1200+ tech skills courses.