2 of 2
Updated code to Python 3 as Python 2 is no longer supported as of January 1, 2020
Python unicode character codes?
Is there a way to "insert" a Unicode character into a string in Python 3? For example,
>>>import unicode
>>>string = 'This is a full block: %s' % (unicode.charcode(U+2588))
>>>print(string)
This is a full block: █
tkbx
- 16.4k
- 34
- 93
- 123
lang-py