print python emoji as unicode string
Another solution is to use the name aliases and print them using the string literal \N
print('\N{grinning face with smiling eyes}')
Current list of name aliases can be found at: https://unicode.org/Public/15.0.0/ucd/UnicodeData-15.0.0d6.txt
Or the Folder for everything here: https://unicode.org/Public/
>>> print u'\U0001f604'.encode('unicode-escape')
\U0001f604