my_data_file = open('data.txt', 'w')
r
– (default mode) open the file for readingw
– open the file for writing, overwriting the content if the file already exists with datax
– creates a new file, failing if it existsa
– open the file for writing, appending new data at the end of the file’s contents if it already existsb
– write binary data to files instead of the default text data+
– allow reading and writing to a mode