# find3a.py
# Written by Todd Wareham for CS 2500
"""
Given the list of strings as a command-line argument, computes and prints
 the list-position of the first argument equal to the string "it"; if "it"
 is not in the list, an appropriate message is printed.

This version is implemented using a while-loop with a break statement and an
 else-clause.
"""

import sys

i = 1

while (i < len(sys.argv)):
    if (sys.argv[i] == "it"):
        print "argument #", i, "is it!"
	break
    i += 1
else:
    print "Didn't find it!"

