Advertisement
elena_gancedo

Count vowels

Aug 29th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. print ("************************************************")
  2. def count_vowels(cad):
  3.     vow = 0
  4.     for c in cad:
  5.         if c in "aeiouAEIOU":
  6.             vow = vow + 1
  7.     return vow
  8. #PROG. PPAL
  9. cad = raw_input("")
  10. print count_vowels(cad)
  11. print ("************************************************")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement