We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4631a91 commit 16302afCopy full SHA for 16302af
public/data/python.json
@@ -35,7 +35,7 @@
35
"code": [
36
"def count_vowels(s):",
37
" vowels = 'aeiouAEIOU'",
38
- " return len([char for char in s if char in vowels])",
+ " return len([char for char in s.lower() if char in vowels])",
39
"",
40
"# Usage:",
41
"print(count_vowels('hello')) # Output: 2"
0 commit comments