Answer to Question #225607 in Python for Reclimet

Question #225607

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

1
Expert's answer
2021-08-16T01:06:13-0400
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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS