Files
30-seconds-of-code/test/count_vowels/count_vowels.py
2018-02-16 16:09:18 +05:30

5 lines
98 B
Python

import re
def count_vowels(str):
return len(len(re.findall(r'[aeiou]', str, re.IGNORECASE)))