how to write on a new line in file in python code example Example: new line python write to file hs.write(name + "\n")