def write_file(Content): f = open("logs.txt", "w") // Open the file to write the logs f.write(" " + Content) // Write the list_user to the log_user.txt file f.close() // Close the file