Python Program to Count Vowels and Consonants in a String | String Analysis Program in Bangla

Опубликовано: 29 Август 2026
на канале: DevJourney
14
2

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