Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def consonantCounter(text):
  2. """Count the number of consonant in a word entered as string"""
  3. count = 0
  4. for letter in text:
  5. if letter in "bcdfghjklmnprstvxzwBCDFGHJKLMNPRSTVZXW":
  6. count = count + 1
  7. return count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement