title: Avoiding to print out a certain word in a list
body: <p>So I'm just starting to learn python. I am doing this exercise which asks the following:</p>
  
  <p>"Implement a program that requests a list of words from the user and then prints each word in the list that is not 'secret'."</p>
  
  <p>This is what I have so far but it seems that it is not working when the code is executed. Does anyone have any ideas?</p>
  
  <pre><code>wordinput = input('Enter a list of words: ')
  
  def keep_secret(l: wordinput) -&gt; list:
      for i in wordinput:
          if i == 'secret':
              return None
          else:
              print (i)
  </code></pre>