This Python program takes a string input from the user and counts the number of vowels and consonants in it. The program uses a loop to go through each character of the string and checks whether it is an alphabet using the isalpha() method. Then it compares each letter with the vowel set (A, E, I, O, U) to separate vowels and consonants.
Finally, it displays the total number of vowels and consonants in the given string.
This is a simple and important Python program for beginners to understand string handling, loops, and conditions.
👉 Perfect for Python beginners, assignments, and practical exams.
#Python #PythonProgramming #StringProgram #VowelConsonant #LearnPython #PythonTutorial #CodingForBeginners #PythonExamples #ProgrammingBasics #PythonBangla #CodingBangladesh
On this page of the site you can watch the video online Python Program to Count Vowels and Consonants in a String | String Analysis Program in Bangla with a duration of hours minute second in good quality, which was uploaded by the user DevJourney 21 June 2026, share the link with friends and acquaintances, this video has already been watched 14 times on youtube and it was liked by 2 viewers. Enjoy your viewing!