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)
▶ RUN

Output/ Explanation:


Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad