## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

# Why is my DEVOWEL program not working?

```     def devowel(word):
new_word = ""
for i in word:
if i == "a" or i == "e" or i == "o" or i == "u" or i == "y":
new_word == new_word
else:
new_word == new_word + "i"

return new_word

print(devowel("happy"))
print(devowel("apple"))
```
```

Sorry the formatting came out oddly.

```def devowel(word):
new_word = ""
for i in word:
if i == "a" or i == "e" or i == "o" or i == "u" or i == "y":
new_word == new_word
else:
new_word == new_word + "i"

return new_word

print(devowel("happy"))
print(devowel("apple"))
```

Hi Otarie,

Logically, through each iteration of the loop, if `i` is not a vowel, then add it to `new_word`. Remember that `==` checks for equality and does not perform assignment.

Writing this out as pseudo-code for planning, it may look like this:

```def devowel(word):
# create a variable, new_word, that will build a new string and be returned
# loop through each letter in the word
# if not a vowel