I want to create .txt which contains several lists
a = ['210','210','210','210']
b = ['0.3','0.3','0.3','0.3']
c = ['7.85e-06','7.85e-06','7.85e-06','7.85e-06']
with open("abcd.txt", "w") as output:
output.write(str(a))
with open("abcd.txt", "a") as output:
output.write(str(b))
with open("abcd.txt", "a") as output:
output.write(str(c))
So test file is generated like
['210', '210', '210', '210']['0.3', '0.3', '0.3', '0.3']['7.85e-06', '7.85e-06', '7.85e-06', '7.85e-06']
Now I want to extract the first element of all lists. How can I do that? Here each list contain 4 elements but it may be higher that also.