March 2003
Intermediate to advanced
656 pages
39h 30m
English
writelines
f.writelines(lst)Like:
forlineinlst: f.write(line)
It does not matter whether the strings in sequence
lst are lines: despite its name, method
writelines just writes the strings to the file,
one after another, without alterations or additions.
Read now
Unlock full access