""" average.py Ask user for N. Read in N numbers. Print the average of those numbers. Jim Mahoney | in class on Sep 12 2019 """ print("--- average ---") n = int(input("How many numbers? ")) total = 0.0 for i in range(n): value = float(input(f"number {i+1} : ")) total = total + value average = total / n print(f"The average is {average}.")