title: what's wrong with my code? countconsonant
body: <pre><code>def countConsonant (s):
  
      """Count consonants.
  
      'y' and 'Y' are not consonants.
  
      Params: s (string)
      Returns: (int) #consonants in s (either case)
      """
  
      # do not use a brute force solution:
      # think of a short elegant solution (mine is 5 lines long);
      # do not use lines longer than 80 characters long
  
      # INSERT YOUR CODE HERE, replacing 'pass'
      countConsonant = 0
      for index in s:
          if index == 'bcdfghjklmnpqrstvwxyz':
              countConsonant += 1
      return countConsonant 
  
  print (countConsonant ('"Carpe diem", every day.')) # should return 8
  </code></pre>