40. Python Program to Check given Character is Vowel or Not using Switch Case.
How does this program work?
- In this program you are going to learn about how to read vowel character and print it using switch case in Python.
Here is the code
def switch():
ch = input("Enter a character: ")
char = ['a', 'e', 'i', 'o', 'u']
if (ch == char):
print("Vowel Character")
else:
print("Not an vowel")
switch()