Ad
Code
Diff
  • def disemvowel(string_):
        return ''.join([l for l in string_ if l.lower() not in 'aeiou'])
    • 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
    • return ''.join([l for l in string_ if l.lower() not in 'aeiou'])