Hello,
I want to write to a file in a particular format. There should be 2 columns, the first column should allocate 5 spaces to store digits and the next column should allocate 30 spaces to store characters.
Ex:-
1 Dave
234 Einstein
100000 Bob
.
.
.
for i in range(len(arr)):
temp=arr[i]
add=i,temp
wordlist.write(str(add))
wordlist.write('\n')
wordlist.close()
Thanks.