#Script runs a program that asks numeric values and returns the number of integers and the average of those integers

num = 0
tot = 0.0
while True :
    value = input('Enter a number: ')
    if value == 'done':
        break
    try:
        fvalue = float(value)
        num=num+1
        tot=fvalue+tot
        continue
    except:
        print('Invalid Input.')
        continue

print('All done!')
ave= tot/num
print(num, ave)

5525aef7256c2992d3be94b5eff2e4a9cc5a929e
<mask token>

<mask token>
while True:
    value = input('Enter a number: ')
    if value == 'done':
        break
    try:
        fvalue = float(value)
        num = num + 1
        tot = fvalue + tot
        continue
    except:
        print('Invalid Input.')
        continue
print('All done!')
<mask token>
print(num, ave)

num = 0
tot = 0.0
while True:
    value = input('Enter a number: ')
    if value == 'done':
        break
    try:
        fvalue = float(value)
        num = num + 1
        tot = fvalue + tot
        continue
    except:
        print('Invalid Input.')
        continue
print('All done!')
ave = tot / num
print(num, ave)

#Script runs a program that asks numeric values and returns the number of integers and the average of those integers

num = 0
tot = 0.0
while True :
    value = input('Enter a number: ')
    if value == 'done':
        break
    try:
        fvalue = float(value)
        num=num+1
        tot=fvalue+tot
        continue
    except:
        print('Invalid Input.')
        continue

print('All done!')
ave= tot/num
print(num, ave)
