diff --git a/maingit.py b/maingit.py index 67b6656..ba3b655 100644 --- a/maingit.py +++ b/maingit.py @@ -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) + + +