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

Posted By:

Author Profile

UmairMehmood

1 month ago
Login to like

Join the conversation!

Login to Comment

Discover More Articles

Syngenta Pakistan Apprenticeship Program 2025

PPSC Jobs - Male and Female Assistant Registrar Cooperative Societies 2025

INTERVIEW FOR THE POSITION OF WEB DEVELOPER IN THE URBAN SECTOR PLANNING & MANAGEMENT SERVICES UNIT "THE URBAN UNIT

Discuss the different B.Ed programs currently being offered by AIOU and how are they contributing towards the vision of quality teacher education across the country ?

INTERVIEW FOR THE POSITION OF WEB DEVELOPER IN THE URBAN SECTOR PLANNING & MANAGEMENT SERVICES UNIT "THE URBAN UNIT

Voting Eligibility Checker Using Python

How to Attestation of Degrees/Diplomas/Certificates From HEC ?

Kazakhstan Government Scholarship - How to Apply ? - Complete Detail

Al Barik Bank Jobs 2025 in Pakistan - Apply Now

Irrigation Department Bahawalpur Canal Division Jobs 2025