본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 31306번 Is Y a Vowel?

by 현장 2024. 1. 28.

-Code

vowel = "aeiou"
s = input()
res = 0

for word in s:
    if word in vowel:
        res += 1

print(res, res + s.count('y'))