writelist2file¶
-
decida.
writelist2file
(lines, filename)¶ synopsis:
Write list to file joined with newlines.arguments:
lines (list of str)
list of text linesfilename (str)
file name to writeresults:
- lines written to file, joined by newlines
example:
>>> import decida >>> lines = ["line1", "line2"] >>> decida.writelist2file(lines, "example.txt")