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