write in file such that it appends the rest instead of overwriting in the start code example
Example: how to write to a file in python without deleting all content
file = open("FILE_NAME.txt", "w+") # opens the file in both read and write mode
file = open("FILE_NAME.txt", "w+") # opens the file in both read and write mode