I have five lists I need to make into a text file each in their own column. So far I have
with open("PR.txt","w") as f:
PR = [[Velocity], [Angle], [Impact], [y], [Distance]]
for (x) in zip(PR):
f.write("{0}\t{1}\t{2}\t{3}\t{4}\n".format(*x))
I want it to write a text file that goes
Velocity Angle Impact y Distance
Velocity Angle Impact y Distance
Velocity Angle Impact y Distance
and so on
I can not figure out how to do this.