aboutsummaryrefslogtreecommitdiff
path: root/challenge-279/eric-cheung/python/ch-2.py
blob: c413351d9a186546f4c05a060c699f0b19b4c8e3 (plain)
1
2
3
4
5
6
7
8
9
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)