In this article, we will see how can we check if a word starts with a vowel or not. This is another program in the series of Python practice programs. We have 5 vowels in English, they are a,e,i,o,u. In this program, we will take input from the user and will check if the word entered by the user starts with a vowel.
#take input from user & check it is vowels or not string =input("enter a string or word: ") length=len(string) for x in range (length): if string[x] in "aeiou": print(string[x],": vowel") else: print(string[x],": Not Vowel")
Below is the output of the above code
Try to run this code on your own and let me know if you face any issues.
That’s it Folks on this topic. Let us know your comments on this article in the comment box below. Kindly like our facebook page, follows us on twitter and subscribe to our YouTube channel for latest updates.