#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")
      

      Python language logo
      Checking a character is a vowel or consonant

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.