Programming Examples

Python program to find the average of the list of the numbers entered through keyboard


WAP to find the average of the list of the numbers entered through keyboard.

Solution

#WAP to find the average of the list of the numbers entered through keyboard.
n=int(input("Enter the Limit "))
s=0
for i in range(1,n+1):
    print("Enter ",i,end='')
    a=int(input(" the Number : "))
    s=s+a
avg=s/n
print("The Sum of entered numbers : ",s)
print("The Average of entered numbers : ",avg)
Output


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad