From 8e64668924aba28d8aea2fa0dd059bc9b9fde675 Mon Sep 17 00:00:00 2001 From: stud203999 Date: Sat, 25 Apr 2026 12:01:28 +0300 Subject: [PATCH] add code --- maingit.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) + + +