writelist2file

decida.writelist2file(list, file)

synopsis:

Write list to file joined with newlines.

arguments:

list (list of str)

list of text lines

file (str)

file name to write

results:

  • lines written to file, joined by newlines

example:

>>> import decida
>>> lines = ["line1", "line2"]
>>> decida.writelist2file(lines, "example.txt")