how to keep old content when using write in python code example Example: how to keep old content when using write in python file_out = open("file.out","a")