Ex 3 and 4
Ex 3 and 4
lst = []
ele = float(input())
lst.append(ele)
print(lst)
mean=np.mean(lst)
var=np.var(lst)
std=np.std(lst)
print('Mean=',mean)
print('Variance=',var)
print('Standard Deviation=',std)
4. Read a multi-digit number (as chars) from the console. Develop a program to print the
frequency of each digit with suitable message.
# Read a multi-digit number (as chars) from the console.
# Develop a program to print the frequency of each digit with suitable message.
import pprint
n =int(input('Enter a Multi digit number '))
n=str(n)
count={}
for character in n:
count.setdefault(character,0)
count[character]+=1
pprint.pprint(count)