file.writelines
writelines(sequence)
Write a sequence of strings to the file. The sequence can be any iterable object producing strings, typically a list of strings. There is no return value. (The name is intended to match file.readlines; file.writelines does not add line separators.)