summaryrefslogtreecommitdiff
path: root/comp/work/11/numOfVowles.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/11/numOfVowles.py')
-rwxr-xr-xcomp/work/11/numOfVowles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/comp/work/11/numOfVowles.py b/comp/work/11/numOfVowles.py
new file mode 100755
index 0000000..77ab199
--- /dev/null
+++ b/comp/work/11/numOfVowles.py
@@ -0,0 +1,8 @@
+def count(string):
+ counter = 0
+ for i in string.lower():
+ for j in ["a","e","i","o","u"]:
+ if i == j:
+ counter = counter + 1
+ return counter
+print(count("hello"))