Python Program using function that takes character and returns true if its vowel.

#Python Program using function that takes character and returns true if its vowel.


def vowels():
    vow=['a' , 'e' , 'i' , 'o' , 'u']
  
    if N in vow:
        print(True)
    else:
        print(False)

N=input("\nEnter a character:").lower()
vowels()

Comments

Popular posts from this blog

Python program to calculate age and year when user will be 100 years old

Python program to print numbers less than 5 from the list.