Back Navigation Next Navigation Video 10: Delimited Files (page 3 of 3)

Before we can read the contents of the file, we must tell Python which file we are going to work with and what we will be doing with the file (read, write, append, etc.). This can be done with an open() function, which is conceptually similar to “File -> Open” in an Excel Document. open() returns a “file handle,” which is a variable used to perform operations on the file. The key to this working in Python is properly pointing to the path that contains the file.

Handle Object
Reading Check: The yo-yo started out as a weapon in the Philippines during the 16th century.