I've created a program that generates a list of numbers of users choice, between 1 and 500. The program then writes the list to a file, reads the file, and lists all the numbers. I need to sum the numbers and show the count. Here is my code...
numberFile = open("random_number.txt", "w" )
for i in range(int(input("How many random numbers?: "))):
numbers = str(randint(1, 500))
numberFile.write(numbers)
print(numbers)
numberFile.close()
Any help is greatly appreciated.