Files
30-seconds-of-code/test/count_vowels/count_vowels.py
Rohit Tanwar 385bf72a3e readme-script
2018-02-20 22:42:11 +05:30

5 lines
98 B
Python

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