Question #345292

Average of the given numbers

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS