# Filename: simplefor.py # Author: Brian L. Walter # Description of contents: # A simple program that demonstrates basic for loops. # This prints the integers from 1 to 9. for i in range(10): print i # This prints the squares of the integers from 1 to 9. for j in range(10): print j*j # This prints each of the characters in "abcdefg" on its # own line. for x in "abcdefg": print x