'Write list of strings to file.
The sequence can be any iterable object producing strings.
This is equivalent to calling :meth:`write` for each string.'

def writelines(self, sequence):

    for part in sequence:
        self.write(part)
