Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sentence = input("Please enter sentence: ")
- a = 0
- e = 0
- i = 0
- o = 0
- u = 0
- for index in range(0, len(Sentence) - 1):
- if Sentence(index) == "a":
- a = a + 1
- elif Sentence(index) == "e":
- e = e + 1
- elif Sentence(index) == "i":
- i = i + 1
- elif Sentence(index) == "o":
- o = o + 1
- elif Sentence(index) == "u":
- u = u + 1
- print(a, e, i, o, u)
Add Comment
Please, Sign In to add comment