https://www.acmicpc.net/problem/10203
1
2
3
4
5
6
7
8
9
10
11
12
|
def sol(s):
answer = s.count('a') + s.count('e') + s.count('i') + s.count('o') + s.count('u')
return answer
if __name__ == '__main__':
n = int(input())
for _ in range(n):
s = input()
print('The number of vowels in %s is %d.' % (s, sol(s)))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 2315. Count Asterisks (0) | 2023.01.09 |
---|---|
leetcode 2367. Number of Arithmetic Triplets (0) | 2023.01.08 |
leetcode 2520. Count the Digits That Divide a Number (0) | 2023.01.06 |
leetcode 2469. Convert the Temperature (0) | 2023.01.06 |
백준 10420 기념일 1 (0) | 2023.01.04 |
댓글