Checking a character is a vowel or consonant

    0

    0

    CrypticSai-08

    #get user input
    Char =  input() 
    #Check if the Char belong to set of Vowels
    if (Char == 'a' or Char == 'e' or Char == 'i' or Char == 'o' or Char == 'u'): 
        #if true 
        print("Character is Vowel") 
    else: 
        #if false
        print("Character is Consonant")
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.