Python programs coding series - Find vowel or consonant

Find whether the given letter is vowel or not

#find the given letter is vowel or not

vowels=[‘a’,‘e’,‘i’,‘o’,‘u’]

letter = input(“Enter a character : ”)

if len(letter)>1: print(“Please enter single character”) letter = input(“Enter a character : ”)

Result = False

for i in range(len(vowels)): if letter == vowels[i]: Result = True

if Result == True: print(letter+” is a vowel”) else: print(letter + ” is not a vowel”)

Output

Enter a character : e e is a vowel