Files
30-seconds-of-code/test/count_vowels/count_vowels.py
2018-02-20 14:39:09 +05:30

5 lines
102 B
Python

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