My input value gives corresponding output values as;
my_list = []
for i in range(1,10):
system = i,i+2*i
my_list.append(system)
print(my_list)
[(1, 3)]
[(1, 3), (2, 6)]
[(1, 3), (2, 6), (3, 9)]
[(1, 3), (2, 6), (3, 9), (4, 12)]
I want output stored in 2 columns; where 1,2,3is first column elements and 3,6,9 for 2nd column.
(1 3)
(2 6)
(3 9)
so on... and then write store these values in text file. For text file, is it possible to generate text file as a part of script? Thanks