반응형
https://www.acmicpc.net/problem/10987
10987번: 모음의 개수
알파벳 소문자로만 이루어진 단어가 주어진다. 이때, 모음(a, e, i, o, u)의 개수를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
# @Author YoungMinKim
# baekjoon
x=list(input())
mo = ['a','e','i','o','u']
result=0
for i in mo:
result+=x.count(i)
print(result)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 10998 (0) | 2020.09.06 |
---|---|
baekjoon - python - 10989 (0) | 2020.09.06 |
baekjoon - python - 10953 (0) | 2020.09.06 |
baekjoon - python - 10610 (0) | 2020.09.06 |
baekjoon - python - 4949 (0) | 2020.09.05 |
댓글