InterviewSolution
Saved Bookmarks
| 1. |
Write a program to check whether the given character is a vowel or not? |
|
Answer» ch = input(“Enter a character : “) if ch in (‘a’ , ’A’ , ‘e’ , ‘E’ , ‘i’ , ‘I’ , ‘o’, ‘O’ , ‘u’ , ‘U’): print (ch, ’is a vowel’) else: print (ch the letter is not a vowel’) Output: Enter a character: e e is a vowel |
|