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:

Comments

Popular posts from this blog

Write a program to calculate a students result based on two examinations, 1 sports event, and 3 activities conducted. The weightage of activities= 30%, sports= 20% , and examinations= 50%.

Determine the intensity of shear of an oil having viscosity= 1 poise. The oil is used for lubricating the clearance between a shaft of diameter 10 cm and its journal bearing. The clearance is 1.5mm and the shaft rotates at 150 r.p.m.