sw6 testing hands on

This commit is contained in:
schaermicha1 committed 2026-03-27 21:01:31 +01:00
1 parent 5d0aa9c876
commit f089317e86
13 files changed
+314 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# https://www.codewars.com/kata/54ff3102c1bad923760001f3
# level: 7 kyu
# Return the number (count) of vowels in the given string.
# We will consider a, e, i, o, u as vowels for this Kata (but not y).
# The input string will only consist of lower case letters and/or spaces.
def get_count(inputStr):
num_vowels = 0
for char in inputStr:
if char in "aeiouAEIOU":
num_vowels = num_vowels + 1
return num_vowels
if __name__ == "__main__":
print(get_count("Hello World"))