1π
β
In Python, Unicode string literals are prepended with u
or U
:
In Python source code, Unicode literals are written as strings prefixed with the βuβ or βUβ character:
u'abcdefghijk'
. Specific code points can be written using the\u
escape sequence, which is followed by four hex digits giving the code point. The\U
escape sequence is similar, but expects 8 hex digits, not 4.
So what youβre seeing simply indicates that your values are Unicode strings, not regular strings. If you use one of those values you generally wonβt see the u
, e.g.
>>> print u'My String'
My String
π€Chris
Source:stackexchange.com