title: Python / Strings / Consonants
body: <p>I'm trying to get my head around, how to get a representation of consonants in a sentence. 
  Code I'm using just now doesn't seem to do the job:</p>
  
  <pre><code>vowels = ("aeiou")
  count = 0
  for x in text:
      if not x in vowels:
          count += 1
  </code></pre>
  
  <p>In example " hello world " as an input, I receive 8 consonants. 
  Many thanks in advance.</p>