0

I'm trying to print an emoji on Python

Code:

print("\U0001f600")

I'm trying to print using unicode but after compiling it shows error

Error:

Traceback (most recent call last): File "C:/Users/RAHUL/Desktop/new.py", line 1, in print("\U0001f600") UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001f600' in position 0: Non-BMP character not supported in Tk

I have searched on the internet but did't found the answer

shaik moeed
  • 5,300
  • 1
  • 18
  • 54
Dora
  • 3
  • 4

0 Answers0