open() · r / w / a modes · read() · write() · with statement
.strip(): removes the trailing newline \n from each line when reading\n to add a newline at the end of each written linereadlines(): reads all lines into a list; readline(): reads one line at a timewith open(...) as f: to auto-close safely