re: Daily Challenge #3 - Vowel Counter VIEW POST

FULL DISCUSSION
 

Python

def vowel(str): 
    count = 0
    vowels = set("aeiouAEIOU") 
    for alphabet in str: 
        if alphabet in vowels: 
            count = count + 1
    print("No. of vowels :", count) 
str = "The Practical Dev"
vowel(str) 
code of conduct - report abuse