Write a program that accepts a string from user. Your program should count and display number of vowels in that string.
Source Code
text = input('Enter a string: ')
vowel = 0
for ch in text:
if ch in 'aeiouAEIOU':
vowel += 1
print('No of vowels are', vowel)
Output
Enter a string: Tom is in Australia.
No of vowels are 8