Vowel Removing

    0

    0

    Mahendra Kumar

    beginnerstrings

    Python program to remove all vowels from string

    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)
    
    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.