This commit is contained in:
Роман Бортников 2026-04-25 12:01:28 +03:00
parent f9c09fbc7d
commit 8e64668924

View File

@ -1,5 +1,13 @@
def count_vowels(s: str) -> int
return s
def count_vowels(s: str) -> int:
count = 0
for ch in range(len(s)):
if(s[ch] == "а" or s[ch] == "е" or s[ch] == "и" or s[ch] == "ы" or s[ch] == "о" or s[ch] == "у" or s[ch] == "ю" or s[ch] == "я" or s[ch] == "э" or s[ch] == "а"):
count += 1
#print(s[ch])
print(count)