python-tutorialsmade

Python Program to count the number of vowels in a string!

Here is another interesting Python program that will take a word or sentence as an input (basically a string) and return the number of vowels present in it.

There is numerous way you can write a Python program to count the number of vowels in a string, but here I am going to write as much as easily as possible.

Read the inline comments in the above script to understand it.

Output:

Enjoy coding!

Related Posts

Leave a Reply