본문 바로가기

모음 문자 세기

모음 세기

문자열에서 모음자(vowels) — a, e, i, o, u — 가 몇 개 있는지 세세요. 대문자와 소문자는 동일하게 취급합니다.

Lowercase the string first with s.lower() so you only have five letters to check. The expression ch in "aeiou" is True when ch is one of them.

로그인 또는 계정 만들기

IGCSE, A-Level & AP