> I'm trying to write a simple times-table testing program. .... > How do I create the loop and what line do I place the code? Try the looping chapter in my tutorial which shows both forms of loop in Python(for and while) in the context of multiplication tables oddly enough! Alan g. Author of the 'Learning to Program' web site http://www.freenetpages.co.uk/hp/alan.gauld