I'm trying to practice for my upcoming practical programming test so have been browsing online for examples and came across this 

"Write a function translate() that will translate a text into "rövarspråket" (Swedish for "robber's language"). That is, double every consonant and place an occurrence of "o" in between. For example, translate("this is fun") should return the string "tothohisos isos fofunon". 

I don't know why but I'm struggling with this a lot. So simple but yet I'm having a difficult time. Here is what I have tried

```
def translate(n):
    consonant="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ"
    for letters in n:
        if letters in consonant:
            return (letters+"O"+letters)
        else:
            return("Vowel")

```

I'm sorry if my coding is super amateur. Just trying to learn :/