I have moved this to the Jobs section, and locked the original post so that this likely homework doesn't get deleted by the OP in this is academic dishonesty and their instructor sees it.
To the OP: if this is homework, and you want help, then you need to read this
. Especially the part about making an attempt, and asking specific questions. I can delete this post if it's not for a job and you do want homework help.
Due to the reasons discussed here
we will be moving to python-forum.io
on October 1, 2016.
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.