How to Find Mean of Some Numbers Using NumPy Mean() Method


In this example, we will learn how to find the mean of some Numbers using the NumPy mean() method in Python.

Source Code

import numpy as np

num = [15, 20, 18, 32, 25, 28, 19, 22]

mean_num = np.mean(num)

print(mean_num)

Output:

22.375
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement