# find1.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.
"""

import sys

i = 1
found = False

while ((i < len(sys.argv)) and not found):
    if (sys.argv[i] == "it"):
        print "argument #", i, "is it!"
	found = True
    else:
        i += 1

if not found:
    print "Didn't find it!"

