the question was...
"given the values of 10 observatins nd their frequencies .write a program to find their mean deviation about the mean..??"
(the values are 'xi' nd frequencies are 'fi')....
Alas, arko, you are begging us to do your homework for you, and without even bothering to give us your assignment, let alone any attempt at writing your own code.
If you are behind in class, make sure to go talk with your professor to see what you can do to catch up.
What you are asking us to do for you is really, really simple, so there is no reason you can't learn it yourself and still pass your course.