Just a sample question. Is it possible to show the symbol ±
in Python?
I just tried to use the Extended ASCII Codes char(241)
, but it didn't work.
The simple code:
b = chr(241) #The Extended ASCII Codes for 241 is this symbol "±".
print(b)
The result showed UnicodeEncodeError: 'ascii' codec can't encode character '\x80' in position 0: ordinal not in range(128)
Can someone help? Thanks
I just want to test if I could show the Extended ASCII Codes in Python. There is no complicated code.