Skip to content

Commit 2f828a7

Browse files
Merge pull request #1862 from CodingTestStudy2/최민지
[최민지] Day21
2 parents 4582e4c + 99601c5 commit 2f828a7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Solution:
2+
def vowelConsonantScore(self, s: str) -> int:
3+
A = ['a', 'e', 'i', 'o', 'u']
4+
v, c = 0, 0
5+
for i in s:
6+
if i in A:
7+
v += 1
8+
else:
9+
c +=1
10+
return floor(v / c)
11+

0 commit comments

Comments
 (0)