Ad
Code
Diff
  • def disemvowel(string_):
        vowels = ["a", "e", "i", "o", "u"]
        new_txt = ""
        for i in range(len(string_)):
            if string_[i].lower() in vowels:
                continue
            else:
                new_txt += string_[i]
        return new_txt
    • def disemvowel(string_):
    • list_of_oo = ["a", "e", "i", "o", "u", "O" ,"A" ,"E" ,"I"]
    • newset = ""
    • n = 0
    • while n < len(list_of_oo):
    • for i in string_:
    • if list_of_oo[n] == i:
    • string_ = string_.replace(i , "-")
    • print(list_of_oo[n])
    • n += 1
    • return string_
    • vowels = ["a", "e", "i", "o", "u"]
    • new_txt = ""
    • for i in range(len(string_)):
    • if string_[i].lower() in vowels:
    • continue
    • else:
    • new_txt += string_[i]
    • return new_txt