Hello!
I have some probs with this code, somehow it dont loop 10 times as it should, just one?
How do i make python use a testfil.txt that already exist? I dont want to remove the old data in the file just add new data to it? In this code, will i be able to change or remove the data in the file?
Im very new to python.
import random
n = 10
while n >= 0:
x = random.randrange(0,100,1)
testfil=file("testfil.txt","w")
rad=testfil.readline()
print>>testfil, x
testfil.close
n = n-1
help is welcomed! please