Q. Write a program to calculate the mean of a given list of numbers.

 

Answer =



lst = eval (input ("Enter the list of number : - "))
a = 0
b = 0
for i in lst :
    a = a + i
    b = b + 1
print ("Mean of the list is ", a / b)

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post