title: How to iterate a list of words, and print all words not containing any char of a substring?
body: <p>The goal is to print out all words from the text file which do not contain any of the characters in the substring.</p>
  <p>My current solution is:</p>
  <pre><code>words = open('words.txt')
  
  def avoids(fin, letter):
      for line in fin:
          for char in letter:
              if char in line:
                  break
              print(line.strip())
  
  avoids(words, 'abo')
  </code></pre>
  <p>The output is:
  bdellium
  bdelliums
  be
  bebeeru
  bebeerus
  beblood
  beblooded
  beblooding
  bebloods</p>
  <p>It avoids all words with <strong>a</strong> but still prints all words with <strong>b</strong> and <strong>o</strong>. I know that my mistake has to do something with the break out of the second loop, but I'm just not able to spot it.</p>