In addition to the nested loops pdf. I have created a shorter version that goes with an expanded version of the same python program. So this is a 2 page pdf file, where I have split the program down in to small parts and explained each part in turn. I have then saved as a single pdf file. This to me is more suited for use in a classroom.