-Code
vowel = "aeiou"
s = input()
res = 0
for word in s:
if word in vowel:
res += 1
print(res, res + s.count('y'))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 29297번 Футбол (1) | 2024.01.30 |
---|---|
[백준/파이썬] 30167번 Distinct Digits (0) | 2024.01.29 |
[백준/파이썬] 21895번 Rock-Paper-Scissors for three (0) | 2024.01.27 |
[백준/파이썬] 5987번 String Function Encoding (0) | 2024.01.26 |
[백준/파이썬] 11007번 Inverse Move-to-Front Transform (1) | 2024.01.25 |