# create file to hold data (add .txt extension) file_name = "write_experiment" write_to = "{}.txt".format(file_name) text_file = open(write_to, "w+") # strings to write to file... heading = "=== MMF Test ===\n" content