If else statement for finding the index of a character in a string : <p>For some reason without the else statement the code finds the indexes of the characters in the string. However, when I add the else statement to declare if a character is not found. All it does is give me the else statement even if the character is in the string.</p>

<pre><code>#Function takes a character and a string and returns the index of the character
#found in the string.
def whereIsItS(letter, word):
    #Start finding the index of characters in the string starting at 0.
    letInWord = 0
    #For loop to find specific characters in a string.
    for l in word:
        #If the letter is found it returns the index of the letter.
        if l == letter:
        #Moves to the next character in the string.
            letInWord += 1
        else:
            return "It is not there."
    #Returns the index of the character found the string.        
    return word.index(letter)
</code></pre>

<p>I just can't seem to figure out why it works without the else statement, but not with the else statement.</p>
