Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def consonantCounter(text):
- """Count the number of consonant in a word entered as string"""
- count = 0
- for letter in text:
- if letter in "bcdfghjklmnprstvxzwBCDFGHJKLMNPRSTVZXW":
- count = count + 1
- return count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement