Key: NKVEX323 I added comments ... lots of comments. I hope this code is useful to beginners. I also recommend the inventwithpython site which I adapted the code from.