I have 2 lists of each of equal size, and I am interested in combining these two lists and writing them to a file.
alist=[1,2,3,5]
blist=[2,3,4,5]
- the resulting list should look like [(1,2), (2,3), (3,4), (5,5)]
After that, I want it to be written to a file. How can i do this?
source
share