12. Write a python program to check whether an alphabet is a
vowel or consonant
l = input("Input a letter of the alphabet: ") if l in ('a','e','i','o','u'): print("%s is a vowel. " % l) elif l == 'y': print("Sometimes letter y stand for vowel, sometimes stand for consonangt.") else: print("%s is a consonant." %l)
No comments:
Post a Comment