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


Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad