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