I have a Python list of data:
[1,2,3,4,5]
I want to read this data into a file as a column in the following way:
1
2
3
4
5
and then I want my next list ([6,7,8,9,10]) to be added to it (with a tab):
1 6
2 7
3 8
4 9
5 10
and so on.
Could anyone help me with how I can do this please?
Use the built-in function
zip():output: