Wednesday, May 20, 2020

Python for MBA's- Calculating mean value of numbers using Python.

 Calculating mean using Pyhton

Problem1: 

The number of Cranks produced in a week in 
Amruta Industries in a week by 8 employees is
Given below:

75,91,25,43,77,55,34,52

Calculate the mean value of cranks produced 
in a week by employees.

Solution:


import numpy as np

x=[75,91,25,43,77,55,34,52]

data=np.mean(x)

print(data)
 
  Ans: 56.5

No comments:

Post a Comment