Advertisement
Captainctc

Untitled

Feb 20th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #a program to count numbers of vowel
  2.  
  3. def vowel_count(text): #function for the vowel count
  4.    return text.count("a") + text.count("e") + text.count("i") + text.count("o") + text.count("u")
  5. print(vowel_count("helicopter")) #output the numbers of vowel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement