#This is the code I have so far
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# Write a program that repeatedly asks the user to enter a number, stopping only when they enter 0. Then calculate and display the average of the numbers that were entered.
# For this program we will use a while-True-else loop
i = input('Type in any number: __')
total = 0 # accumulator
num = 0 # this will serve as the total number of entries
# We also have to store the quantity of numbers the user has entered
# Maybe include a for loop to count how many times the program was run.
while i != 0:
print(i)
total = int(total) + int(i)
answer = input('Would you like to add a number? ') # After updating the total,
# ask user if they would like to add number.
if answer == 'y':
#PROBLEM AREA. Tried continue but only breaks the loop
else:
print('i=0, program is over!')
print('The total amount: ', total)
num = num + 1
else:
print('Program does not run with 0 values')
print(total, number, float(total/num))
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''