Discussions Events Study Material Jobs
Check if Character is a Vowel or Consonant using Python - Uniwaly

Explore Diverse Conversations

Check if Character is a Vowel or Consonant using Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 13:26 PM

Input a single character and check if it is a vowel (a, e, i, o, u) or consonant
char = input("Enter a single character: ")
if len(char) == 1 and char.isalpha():
    if char.lower() in ['a', 'e', 'i', 'o', 'u']:
        print(f"{char} is a Vowel.")
    else:
        print(f"{char} is a Consonant.")
else:
    print("Please enter a single alphabet character only.")


Tags:

python check vowel python code
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Compare the teacher education reforms in developed and developing countries.

New 30,000 Teaching Jobs Coming Soon on Merit : CM Punjab

Punjab Higher Education Commission PHEC Jobs 2025

Air University Main Campus - How to Apply

Global Scholarship Opportunities for 2025 – Fund Your Education Abroad

Indian BSF soldier arrested on Pakistani soil by Pak Rangers

Afternoon Teaching Staff Hiring Process

Check Leap Year or Not Using Python

Discuss the need of new professional profile of teaching staff in order to survive in this competitive era.

Simple Number Guessing Game Using Python