cut2=(
('Shared',Signature_1, 'and',Signature_2, 'and',Signature_3,str(shared_A_B_C))
lines2 = '\n'.join([' '.join(i) + '\n' for i in cut2])
f2.write(lines2)
f2.close()
output=Shared V.txt and 5T.txt and 3T.txt {'Ccdc92', 'Esam', 'Apoc1', 'Sec14l2', 'Ces1c', 'Hsd11b1',...}
What are some potential and practical approaches to generating a .txt file with set data listed in a column format? Currently I can write my set data to a .txt file by converting them to strings this produces a list that is read left to right. I would like to alter the formatting so the organization is by column. I have successfully read from .txt files with columns and generated lists and dictionaries but never the reverse. Any advice on how best to accomplish would be appreciated. Thank you in advance.