Oct-12-2020, 06:07 AM
lines=["Line 1","Line 2"]
f=open(r"C:\Users\....\Documents\somefile.txt","w")
f.writelines(lines)
f.close()
How to print a line breaker between items in lines variable (list) when placing them in the text file?
f=open(r"C:\Users\....\Documents\somefile.txt","w")
f.writelines(lines)
f.close()
How to print a line breaker between items in lines variable (list) when placing them in the text file?