KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Write a Python program to demonstrate the use of the NumPy library.

Python Modules

1 Like

Answer

import numpy as np
data = [40, 36, 25, 35, 25, 89]
mean = np.mean(data)
standard_deviation = np.std(data)
print("Mean:", mean)
print("Standard Deviation:", standard_deviation)

Output

Mean: 41.666666666666664
Standard Deviation: 21.891144835805694

Answered By

1 Like


Related Questions