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