add code
This commit is contained in:
parent
f9c09fbc7d
commit
8e64668924
12
maingit.py
12
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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user