Hi @bindulam ,
This appears to be Phyton homework. We want to help you get the information you need, but we also are concerned that just giving you the answer will rob you of the necessary skills you'll need to develop. If you can describe the things you've tried and how they haven't worked for you, perhaps someone can give you a nudge in the right direction.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!
try using some different variable names
Please follow-up to let us know how you made out. For good karma, mark a reply as the answer if it helped!