I am looping in through a file as per the code below:
for i in tree.iter():
for j in i:
print(j.col)
print(j.out)
print('\n')
Given below is the current output:
col1
out1
col2
out2
col3
out3
I am trying to have this modified as below:
col1,col2,col3
out1,out2,out3
Could anyone advice on how I could have my for loop modified. Thanks..