#!/usr/bin/env python3
#=====================================================================================
# Python 'for' loops
#=====================================================================================
print("Content-Type: text/html \n")     #http header with newline char (required for web)

print('<pre>')                          #to produce better display on the web 

print('This is a for loop')                          

for  num in range(1,101):               #the outer loop 1-100
    print(num)                          #print
print()
        
print('This is a for loop that iterates through a list')                          

list1 = ['a','b','c','d']
for elem in list1:                      #give me the next element
    print(elem)
print()