Python program to find average of N numbers || programminginpython.com

preview_player
Показать описание
How to find average of N numbers in python?

Hello everyone, here we will learn a simple logic to find average on N numbers in python. This program takes max numbers from user and calculates the sum of all the numbers in a loop and the final obtained sum is divided by total number of inputs taken. That results as the average of N numbers.

The formula for it is Average = ( n1+n2+n3+.....) / N , where N is the total number of inputs and n1,n2,n3.. are the values of each input.

-~-~~-~~~-~~-~-
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Actually what I'm trying to do is to find average if we give a negative number. Can you explain that?

kantamsettipavan
Автор

try to change the layout first it is not at all visibile to see the code

kumarraja
welcome to shbcf.ru