0

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

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

There are 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 easy as possible.

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

Output:

Enjoy coding!

agurchand

Technologist, software engineer, blogger with experience in Web development and the Media.

Leave a Reply