Any ideas what I can do to fix it? Program is below. Thank you in advance!!!
import random#main functiondef main():#program messageprint("Random Number File Generator")#prompt user to enter total numberscount=int(input("How many random numbers should file hold:"))#create new text fileoutfile=open('random numbers writer.txt','w')#loop to genertate random numbers and write it in filewhile count!=0:num=random.randint(1,100)#write random generated number into text fileoutfile.write(str(num)+'')count-=1outfile.close()main()
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here