From aede69f16204b74a9bc3f10afb980783e97d3f3c Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Tue, 9 Jan 2018 18:31:34 +0530 Subject: [PATCH] prettify-code and update README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 06bcd10ab..cb9162487 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ 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))) ``` @@ -63,6 +63,7 @@ def countVowels(str): countVowels('foobar') # 3 countVowels('gym') # 0 ``` + ### gcd Calculates the greatest common divisor between two or more numbers/lists.