Answers for "python list get mean list"

4

mean of a list python

import numpy as np
np.mean(list)
np.std(list)
Posted by: Guest on January-23-2021
0

python get average of list

#python3

def average(list): 
    result = sum(list) / len(list) 
    return result 

list = [68,68,71,71,71,75,71,78,91,98,75,71,84]
print(average(list))
Posted by: Guest on March-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language