For starters, put your code in Python code tags. You can find help here.
It would also be helpful if you explained in more detail, what about your results is not right.
It would also be helpful if you explained in more detail, what about your results is not right.