I'm trying to create a program that creates a file and write the number for each line. Here is what I have so far but can't seem to get the loop and write correct.
Thanks in advance.
print "Creating txt file"
tfile = open("25.txt", "w")
for i in range(25):
x = int(1)
tfile.writelines("x\n")
x += 1
tfile.close()
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
