I have a problem with writing my printed output to a file.
My code:
list1 = [2,3]
list2 = [4,5]
list3 = [6,7]
for (a, b, c) in zip(list1, list2, list3):
print a,b,c
the output I get is:
>>>
2 4 6
3 5 7
>>>
but I have problems with saving this output, I tried:
fileName = open('name.txt','w')
for (a, b, c) in zip(list1, list2, list3):
fileName.write(a,b,c)
and various combinations like fileName.write(a+b+c) or (abc), but I am unsuccessful...
Cheers!