I am trying to write numbers into a txt file. But i get the error message telling me that the values have to be in string format not in int.
a = [1,2,3,4,5]
b = [2,6,4,3,2]
with open('writefile.txt','w') as f:
for i in range(len(a)):
f.write (a[i])
f.close()
Can someone help me ? Thanks a lot