Average of Given Numbers
This Program name is Average of Given Numbers. Write a Python program to Average of Given Numbers, it has two test cases
The below link contains Average of Given Numbers question, explanation and test cases
https://docs.google.com/document/d/1N0TJ_dtyZN-TJW6P6KfFmqNc-qQhOVOu/edit?usp=sharing&ouid=104486799211107564921&rtpof=true&sd=true
We need exact output when the code was run
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))
Comments
Leave a comment