Your code is correct, the problem is that the challenge asked you to Return the new string not print it. Also I’d like to point out there is an easier way to write your letter exceptions. Rather than writing an if statement with a ‘not equals’ for each and every letter, upper and lowercase, you can just use a list.
vowels= ['a', 'e', 'i', 'o', 'u']
and to deal with your pesky uppercase letters you can just use the .lower() built-in function.
for i in word:
if i.lower() in vowels:
and then lastly to remove it there are a few options but .remove() is the most straightforward
There’s a whole bunch of ways to solve these challenges. It’s always good to figure out more than one way to solve a problem. Can come in quite handy later on.