Here is the solution of my problem using error handling. I hope the code will be tagged. Here is the code:::::::::::::::::::::::::::
file5.py size = 40 print("here is the addition of many numbers (even with a .) Maximum of numbers=", size) print("Once you have finished your list of numbers, just press $ to indicate the end\n") total = 0.0 value = 0.0 count = 1 while (count != 0): try: value = float(input("enter the value: ")) except ValueError: count=count-1 average = total/count print("average value= ", average) exit() else: print(value) print(total) total = value + total print(total) count = count + 1