statement used to open a file in python code example Example: statement used to open a file in python file_object = open("filename", "mode")