Vowel and consonant count X21212


Statement
 

pdf   zip

html

Write a function vowel_consonant_count(s) that given an string s returns the number of vowels and consonants that appear as characters in s. We assume all characters of s are letters.

Sample session
>>> vowel_consonant_count('SpartacUs')
(3, 6)
>>> vowel_consonant_count('KingKong')
(2, 6)
Information
Author
ProAl
Language
English
Official solutions
Python
User solutions
Python