8/15 code bugs with!


#1

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 += " "
        else:
            resultado += i
    print resultado
    return resultado
        
anti_vocal("hola")
anti_vocal("Bienvenidos a Codecademy")
anti_vocal("¡")

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)

#2

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!


#3

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