Simple Python program to find whether a given character is vowel or not
Subject: Python Programming
Contributed By: Nunugoppula Ajay
Created At: February 25, 2025
Question:
Write a Python program to find whether a given character is vowel or not.
Explanation Video:

Explanation:
Source Code:
char = input("Enter a character: ")
vowel = 'aeiouAEIOU'
if char in vowel:
print("Given character is a vowel")
else:
print("Given Character is a consonant")
Input:
Test Case-1:
Enter a character: a
Test Case-2:
Enter a character: M
Output:
Test Case-1:
Given character is a vowel
Test Case-2:
Given Character is a consonant