# find0.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 for-loop.
"""

import sys

found = -1

for i in range(1, len(sys.argv)):
    if (sys.argv[i] == "it"):
        found = i

if  found == -1:
    print "Didn't find it!"
else:
    print "argument #", found, "is it!"

