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

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,792 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!

Dave StSomeWhere
Dave StSomeWhere
19,792 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: