Practice program from codecademy.com with a few tweaks.
Notes on different types of iteration from codecademy.com lesson