지나가던 개발자

[Python] 백준 1264번(모음의 개수) 문제 풀이 본문

PS/Python

[Python] 백준 1264번(모음의 개수) 문제 풀이

KwonYongHyeon 2022. 3. 18. 20:54

 

test_case = []
while True:
    a = input()
    if a == "#":
        break
    test_case.append(list("".join(list(a.lower()))))
for i in test_case:
    print(i.count("a") + i.count("i") + i.count("u") + i.count("e") + i.count("o"))

 

 일본에서는 아에이오우를 아이우에오 라고 한다. 어쩌다 보니 아이우에오 라고 쓴 나 자신을 발견했다.

Comments