Source Code:
(back to article)
my_string = "banana" vowels = "aeiou" new_string = "" for char in my_string: if char not in vowels: new_string += char print(new_string) # prints "bnn"
Result:
Report an issue