files are opened and closed with open(and close(lines can be read by iterating over the file object lines can be split into lists and check for existence of specific substrings string formatting operators can be used for obtaining specific output file output can be done with print or write(