I wanted to make a file in python and i came across a error. i have no idea why it comes up with this, i did look online but couldn't find any solutions to my problem. and i have imported random and i do have a list for enc1
f = open("Skins.txt",'w')
for r in range(1,1201):
f.write(str(r))
f.write(",")
f.write(random.choice(enc1))
f.write("\n")
f.close()
The error:
f.write(str(r))
ValueError: I/O operation on closed file.