I have a list of strings in my code;
A = [\'a1\', \'a2\', \'a3\' ...] B = [\'b1\', \'b2\', \'b3\' ...]
and I want to print them separated b
You can print a native linebreak using the standard os library
os
import os with open('test.txt','w') as f: f.write(os.linesep)