title: functions to search for a string in python
body: <p>I am trying to write a function to do the following:</p>
  
  <ol>
  <li><p>Write a function isRed() that accepts a string parameter and looks for the presence of the word ‘red’ in the string called text.  </p></li>
  <li><p>If it is found, return boolean True otherwise False.</p></li>
  <li><p>Output the result of calling the function with the value in text.</p></li>
  </ol>
  
  <p>This is what I have:</p>
  
  <pre><code>def isRed(text):
    if text.find(red):
      return (True)
    else:
        return (False)
    return red   
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Program Failed for Input: ""
  Expected Output: False
  Your Program Output: 
  </code></pre>
  
  <p>I'm new to functions, and a bit confused as to why this isn't working. </p>