Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Vowel Function
- def vowel_count(string):
- """This function will count and returns the number of vowels in the string argument"""
- string = string.lower() #This will convert the string argument to lowercase if it contain an uppercase(s)
- count = 0
- for i in string:
- if(i=="a" or i=="e" or i=="i" or i=="o" or i=="u"):
- count +=1
- return count
- vowels = vowel_count("bockarie")
- print(vowels)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement