+ 3

Program to calculate mean of the given list of numbers

30th Sep 2019, 1:26 PM
Ayush Tripathi
Ayush Tripathi - avatar
2 Respostas
+ 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)
30th Sep 2019, 2:06 PM
Mohamed Arshad
Mohamed Arshad - avatar
+ 1
mylist = [12, 25, 35, 46, 5, 65, 77, 8] print(sum(mylist)/len(mylist))
30th Sep 2019, 5:45 PM
rodwynnejones
rodwynnejones - avatar