def removeVowels(string):
          vowel = 'aeiou'
          #find vowel in string
          for ch in string.lower():
              if ch in vowel:
                  #remove vowels
                  string = string.replace(ch, '')
          #print string without vowels
          print(string)
      # take input
      string = input('Enter any string: ')
      # calling function
      removeVowels(string)
      

      Python language logo
      Vowel Removing

      beginner
      strings

      Python program to remove all vowels from string

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.