728x90
반응형

단순 문자열 문제이다.

for _ in range(int(input())):
    s = input().rstrip()
    cnt = 0
    for c in s:
        if c in "aeiou":
            cnt += 1
    print(f"The number of vowels in {s} is {cnt}.")
728x90
반응형

+ Recent posts