Update typo.md
This commit is contained in:
@ -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
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user