# denotes total sum of ten numbers
      total_sum = 0
      for n in range (10):
          # take inputs
          num = float(input('Enter number: '))
          # calculate total sum of numbers
          total_sum += num
      # calculate average of numbers
      avg = total_sum / 10
      # print average value
      print('Average of numbers = %0.2f' %avg)
      
      Python language logo

      numAverage

      beginner
      learning

      Finding the average of given numbers.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.