Answer to Question #345292 in Python for Sai

Question #345292

Average of the given numbers

1
Expert's answer
2022-05-26T14:08:06-0400
n = int(input("The number of digits for which you want to calculate the average: "))
num_list = []
print("Enter the number: ")
for x in range(n):
    k = int(input())
    num_list.append(k)
avg = sum(num_list) / len(num_list)
print("Average: ", avg)

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