0% found this document useful (0 votes)
8 views1 page

3 Python

The document outlines a Python program that reads 'n' numbers from the console, calculates the mean, variance, and standard deviation, and prints them with appropriate messages. It uses lists to store the input numbers and their squared differences from the mean to compute variance. Additionally, it assesses the dispersion of the data based on the standard deviation, indicating reliability levels.

Uploaded by

Bhagyashree
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

3 Python

The document outlines a Python program that reads 'n' numbers from the console, calculates the mean, variance, and standard deviation, and prints them with appropriate messages. It uses lists to store the input numbers and their squared differences from the mean to compute variance. Additionally, it assesses the dispersion of the data based on the standard deviation, indicating reliability levels.

Uploaded by

Bhagyashree
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3. Read N numbers from the console and create a list.

Develop a program to print mean,variance and


standard deviation with suitable messages.

n=int(input('enter the no. of elements'))

list1=[ ]

for i in range(n):

list1.append(int(input('enter the element')))

mean=sum(list1)/n

print('Mean is:', mean)

list2=[ ]

for i in range(n):

list2.append((list1[i]-mean) **2)

variance=sum(list2)/n

print('variance is:', variance)

std_deviation=variance**(1/2)

print('standard deviation is:', deviation)

if deviation>=1.5:

print('High Dispersion, low reliabilty')

else:

print('low Dispersion, reliable')

You might also like