hi all,

i wrote the following code:

def find(word, letter):
    index = 0
    while index < len(word):
        if word[index] == letter:
            return index
        index = index + 1
    return -1

if i run the program i get this error: name 'word' is not defined.  how can i 
solve it?

thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to