+ 3
Program to calculate mean of the given list of numbers
2 Respuestas
+ 5
lst=eval(input(“Enter list:”))
length=len(lst)
mean=sum=0
for i in range(0,length):
sum+=lst[i]
mean=sum/length
print(“Given list is:”,lst)
print(“The mean of the given list is:”,mean)
+ 1
mylist = [12, 25, 35, 46, 5, 65, 77, 8]
print(sum(mylist)/len(mylist))