Python – Opening Files

The key function for working with files in Python is the open() function, which takes two parameters: filename, and mode.