Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def countVowel():
- file = open('main.txt')
- a = file.read()
- b = a.split()
- count = 0
- for k in b:
- for a in k:
- if a in "aeiouAEIOU":
- count = count + 1
- print("No of vowels present in", k, ": ",count)
- count = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement