Is this the cleanest way to write a list to a file, since writelines() doesn\'t insert newline characters?
writelines()
file.writelines([\"%s\\n\" % item fo
Another way of iterating and adding newline:
for item in items: filewriter.write(f"{item}" + "\n")