A few little imporvements.

Hi, i'm /u/SurviAvi from Reddit who gave you the Gits tip yesterday.

I added a few little improvements (syntax and logical) to you code and comments explaining what you did in order for you to understand it and be able to use it yourself.

If you have any questions feel free to ask me.
in the meantime enjoy python and I hope you will learn allot.