Skip to content

Commit af2058b

Browse files
Merge pull request #1864 from CodingTestStudy2/남효정
[남효정] Day21
2 parents 0ac8961 + 9edc3ff commit af2058b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)