summaryrefslogtreecommitdiff
path: root/comp/work/11/numOfVowles.py
blob: 77ab199834880c8418d7d4bc69577eab7cdce8c1 (plain)
1
2
3
4
5
6
7
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"))