Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introducing Lists Meet Lists Deletion

Nick Moy
Nick Moy
1,061 Points

I tried to use "\N{TACO}" in VSCode on my local but didn't receive an emoticon. Help?

How does this happen? Is there a library that has been installed specifically for this tutorial? If so, how could I do this locally?

4 Answers

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Check your python version - maybe you started the python shell with python instead of python3?

Your results seem like python 2.7 behavior.

On 2.7 you can try the unicode characters like:

print u"\U0001F32E"

:tropical_drink: :palm_tree:

Nick Moy
Nick Moy
1,061 Points

Hey Dave, yes this is form the repl in my terminal. I followed the exact steps shown by Craig in the video on my local terminal and had a very different result. If I try to use an emoji keyword it returns the keyword as a string, not the emoji itself.

I managed to find an emoji library on github that will give me what I am looking for but I want to know how Craig does it in his videos...

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Understood - I did the same thing, found that github page and yada, yada, yada.

I'm on linux and use pyCharm and copied your code and it works in the python shell in my terminal and the python shell in pyCharm. Are you on Windows?

Did you try running it as a script like (also worked for me):

print("\N{TACO}")
Nick Moy
Nick Moy
1,061 Points

I am on mac. I tried running the code as shown in your comment above and the script returned a string

\N{TACO}
Nick Moy
Nick Moy
1,061 Points

That was it! Thank you very much!