Ad
Code
Diff
  • def disemvowel(string_):
        vowels = {"a", "e", "i", "o", "u", "A", "E", "I", "O", "U"}
        return ''.join(char for char in string_ if char not in vowels)
    • 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", "A", "E", "I", "O", "U"}
    • return ''.join(char for char in string_ if char not in vowels)