We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0884e74 + 4aeba3c commit c00fccbCopy full SHA for c00fccb
Average.py
@@ -0,0 +1,7 @@
1
+n=int(input("Enter the number of elements to be inserted: "))
2
+a=[]
3
+for i in range(0,n):
4
+ elem=int(input("Enter element: "))
5
+ a.append(elem)
6
+avg=sum(a)/n
7
+print("Average of elements in the list",round(avg,2))
0 commit comments