diff --git a/snippets/countVowels.md b/snippets/countVowels.md index 2f3450f1d..dd20022eb 100644 --- a/snippets/countVowels.md +++ b/snippets/countVowels.md @@ -9,11 +9,11 @@ import re def countVowels(str): - return len(len(re.findall(r'[aeiou]', 'bcedfidsnoxluAEIO', re.IGNORECASE))) + return len(len(re.findall(r'[aeiou]', str, re.IGNORECASE))) ``` ``` python countVowels('foobar') # 3 countVowels('gym') # 0 -``` \ No newline at end of file +```