Multiple characters in a string return a false boolean when trying to find a character in the string
<pre><code>#Function takes a character and a string and returns a boolean reflecting if
#the character is found in the string.
def isItThereS(letter, word):
    letInWord = 0
    for l in word:
        if l == letter:
            letInWord += 1
    return letInWord == True
</code></pre>

<p>When I put it in the operator like </p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>isItThereS("h","hello world")
      True</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>but when I go to find a character that repeats like "l" or "o" it returns false.</p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>isItThereS("l","hello world")
      False</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>How would I go about getting that to not return false, but instead return True since the character is technically in the string?</p>

<p>you can simply use the in operator</p>

<pre><code>def isItThereS(letter, word):
  return letter in word
</code></pre>

python string python-3.x character