Write a python program to determine whether the character entered is a vowel or not.

                                                     Write a python program to determine whether a person is eligible to vote.

Write a python program to determine whether the character entered is a vowel or not.


PROGRAM:
c=input("Enter a character:")
if (c=="=a" or c=="e" or c=="i" or c=="o" or c=="u"):
    print(c, " is a vowel.")
if (c=="A" or c=="E" or c=="I" or c=="O" or c=="U"):
    print(c, "is a vowel.")
else:
    print(c,"is not a vowel.")

OUTPUT:

No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.