add code
This commit is contained in:
+10
-2
@@ -1,5 +1,13 @@
|
|||||||
def count_vowels(s: str) -> int
|
def count_vowels(s: str) -> int:
|
||||||
return s
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user