8/15 code bugs with!


Ive dobuled checked, and the code does work, but when you put an "!" on it, it crashes

def anti_vocal(texto):
    resultado = ""
    for i in texto:
        if i in "aeiouAEIOU":
            resultado += " "
            resultado += i
    print resultado
    return resultado
anti_vocal("Bienvenidos a Codecademy")

it returns:

h l 
B  nv n d s   C d  c d my
Traceback (most recent call last):
  File "python", line 13, in <module>
  File "python", line 8, in anti_vocal
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)


Maybe it is because you're Spanish (I think so) and your exclamation mark is upside down, so it doesn't recognize is. Either way, if it's not big of a deal, i'd say, just move on! You did a good job!


Perhaps its upside down, but the truble is that when it tests if the code is right, it calls anti_vocal(Python¡) or something like that and it crashes