Count how many vowels and consonants occur in a string: Difference between revisions
Count how many vowels and consonants occur in a string (view source)
Revision as of 06:28, 12 September 2021
, 2 years ago→{{header|Python}}
(→{{header|Python}}: 33 "vowels and consonants") |
|||
Line 570:
print(f'{nv + nc} "vowels and consonants"\n')
print(f'\t{nv}
print(showCharCounts(vs))
print(f'\n\t{nc}
print(showCharCounts(vs))
Line 639:
<pre>33 "vowels and consonants"
12
('a', 4)
('e', 3)
Line 646:
('u', 1)
21
('a', 4)
('e', 3)
|