numbers = [1,2,3,4,5,6]
with open('output.txt', 'w') as f:
f.write('\t'.join(numbers))
Not really sure what else you mean
solved how to write to a text file using python ?
numbers = [1,2,3,4,5,6]
with open('output.txt', 'w') as f:
f.write('\t'.join(numbers))
Not really sure what else you mean
solved how to write to a text file using python ?