Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def vowel_count(str):
  2.     vowel = 0
  3.     for i in str:
  4.         if (i == 'a' or i == 'e' or i == 'i' or i == 'o' or i == 'u'):
  5.             vowel += 1
  6.  
  7.     return ("The count of vowel in the string is ", vowel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement