Program to check whether an alphabet is a vowel

In this python if else program, we will check whether an input alphabet is a vowel or not.

Vowel: A speech sound produced without obstruction or audible friction in the mouth. : a letter (as a, e, i, o, u, and sometimes y) representing a vowel.

Steps to solve the program
  1. Take an alphabet as input through the user.
  2. Create a list of vowels.
  3. Using an if-else statement check whether the input vowel is in the list or not.
  4. Print the output.
				
					char = input("Enter a character: ")
vowel = ["A","E","I","O","U","a","e","i","o","u"]

if char in vowel:
    print("True")
else:
    print("False")
				
			

Output :

				
					Enter a character: A
True
				
			

Related Articles

Fizz-Buzz program.

check whether an alphabet is a consonant.

Leave a Comment