with open("example.txt", "a") as file: # Write a string to the end of the file ...