aboutsummaryrefslogtreecommitdiff
path: root/challenge-279/eric-cheung/python/ch-2.py
diff options
context:
space:
mode:
authorSantiago Leyva <99155189+DevSanti12@users.noreply.github.com>2024-07-25 23:57:49 -0500
committerGitHub <noreply@github.com>2024-07-25 23:57:49 -0500
commitdb40d75f603f3fae34944cb3a762b290b18577d8 (patch)
tree1205c733ae416bcbce12e225a5252841316c5540 /challenge-279/eric-cheung/python/ch-2.py
parent350f495b09a4b6b6db8506533e2dccc68d9fc3f4 (diff)
parent3d6cbce024396f3950dad9b40151458e4134202d (diff)
downloadperlweeklychallenge-club-db40d75f603f3fae34944cb3a762b290b18577d8.tar.gz
perlweeklychallenge-club-db40d75f603f3fae34944cb3a762b290b18577d8.tar.bz2
perlweeklychallenge-club-db40d75f603f3fae34944cb3a762b290b18577d8.zip
Merge branch 'manwar:master' into master
Diffstat (limited to 'challenge-279/eric-cheung/python/ch-2.py')
-rwxr-xr-xchallenge-279/eric-cheung/python/ch-2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-279/eric-cheung/python/ch-2.py b/challenge-279/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..c413351d9a
--- /dev/null
+++ b/challenge-279/eric-cheung/python/ch-2.py
@@ -0,0 +1,10 @@
+
+## strInput = "perl" ## Example 1
+## strInput = "book" ## Example 2
+strInput = "good morning" ## Example 3
+
+arrVowel = ["a", "e", "i", "o", "u"]
+
+arrVowelCount = [charLoop for charLoop in strInput if charLoop in arrVowel]
+
+print (len(arrVowelCount) % 2 == 0)