Python Introducing Lists Meet Lists Deletion

craigs_lunch

I'm getting the following when I try to run an example in the training through the console. Is there a reason why I cannot get the emoji taco to show up like on the video?

treehouse:~/workspace$ python -i wishlist.py
Suggested gift: Learning Python: Powerful Object-Oriented Programming - Mark Lutz

craigs_lunch = "\N(TACO)"
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: malformed \N character escape

Angela Anders Hi :], i asked the same question and it appears that your computer does not support this. see this discussion; https://teamtreehouse.com/community/just-wanted-to-ask-why-i-dont-get-the-taco-emoji

Steven Parker
Steven Parker
182,590 Points

Your issue was different, the decoding was working but it did not display.

2 Answers

Steven Parker
Steven Parker
182,590 Points

Named escapes should have the name enclosed in braces instead of parentheses.

So instead of "\N(TACO)", try: "\N{TACO}".

Okie dokie. Makes sense. Thanks

Steven Parker
Steven Parker
182,590 Points

If that works, you can mark a question solved by choosing a "best answer".
And happy coding!