📜  检查值元音用户输入python代码示例

📅  最后修改于: 2022-03-11 14:47:00.803000             🧑  作者: Mango

代码示例1
# taking user input
ch = input("Enter a character: ")

if(ch=='A' or ch=='a' or ch=='E' or ch =='e' or ch=='I'
 or ch=='i' or ch=='O' or ch=='o' or ch=='U' or ch=='u'):
    print(ch, "is a Vowel")
else:
    print(ch, "is a Consonant")