Skip to main content

Posts

Showing posts with the label Write a Python program to input any alphabet and check whether it is vowel or consonant.

ads1

Python Condition , 8. Write a Python program to input any alphabet and check whether it is vowel or consonant.

8.Write a Python program to input any alphabet and check whether it is vowel or consonant. Solution :- alpha = input("Enter the Character:-") if (alpha == 'a'or alpha=='e' or alpha=='i' or alpha=='o' or alpha=='u' or alpha=='A' or alpha=='E' or alpha=='I' or alpha=='O' or alpha=='U'):     print("It is Vowel") else :     print("It is not Vowel ") Output :-

ads2