Vowel and consonant count X21212


Statement
 

pdf   zip

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

Sample session

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