Count how many vowels and consonants occur in a string: Difference between revisions

Content added Content deleted
(Python example)
Line 174: Line 174:


=={{header|Python}}==
=={{header|Python}}==
{{tr|Julia}}
{{trans|Julia}}
<lang python>def isvowel(c):
<lang python>def isvowel(c):
""" true if c is an English vowel (ignore y) """
""" true if c is an English vowel (ignore y) """
Line 212: Line 212:
Consonants: 31 (distinct 13)
Consonants: 31 (distinct 13)
</pre>
</pre>



=={{header|Raku}}==
=={{header|Raku}}==