#!/usr/bin/python # Print the required header that tells the browser how to render the text. print "Content-Type: text/plain\n" # Initialize a counting variable. counter = 1 # Print the even numbers from 1 to 10. while (counter <= 10): if ((counter%2) == 0): print counter counter = counter +1 print "Finished."