There was an error while loading. Please reload this page.
2 parents 0ac8961 + 9edc3ff commit af2058bCopy full SHA for af2058b
1 file changed
leetcode3/남효정/3813. Vowel-Consonant Score.py
@@ -0,0 +1,7 @@
1
+class Solution:
2
+ def vowelConsonantScore(self, s: str) -> int:
3
+ v = 0
4
+ vowels = ['a', 'e', 'i', 'o', 'u']
5
+ for vowel in vowels:
6
+ v += s.count(vowel)
7
+ return v // (len(s) - v)
0 commit comments