| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/gitishman/Basic-Python-Programs/main/Average.py | [Back] [Original] |
n=int(input("Enter the number of elements to be inserted: "))
a=[]
for i in range(0,n):
elem=int(input("Enter element: "))
a.append(elem)
avg=sum(a)/n
print("Average of elements in the list",round(avg,2))
| Web Proxy Viewer | New URL | Original Page |