Esto es Clave


#1

Webster = {
"Cerdo hormiguero" : "La estrella de un popular programa infantil de caricaturas.",
"Bee" : "El sonido que hace una cabra.",
"Alfombra": "Va en el piso.",
"Pizca": "Una cantidad pequeña."
}

for clave in Webster:
print clave, Webster[clave]

Devuelve
Cerdo hormiguero La estrella de un popular programa infantil de caricaturas.
Pizca Traceback (most recent call last):
File "python", line 9, in
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)

¡Uy! Probá otra vez


#2

if had to take a guess, i would say the problem is here:

"Pizca": "Una cantidad pequeña."

the ñ is not valid, use normal n


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.