So I have written up parts of a program that says I can take in any number of positive numbers and zero, and to exit the program I can write a negative number. I now want to print out the average of this. How would I print out the average?
The bits so far.
i = int(eval(input('Enter a number positive number. Enter a negative number to exit: ')))
while i >= 0:
i = int(eval(input('Enter a number positive number. Enter a negative number to exit: ')))