+ 3
Program to calculate mean of the given list of numbers
2 RĂ©ponses
+ 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))