A Python program that has nested for-loops