![]() For example to add a hat to i the command is print('i\u0302').īelow is a list of symbols and greek letters and the corresponding unicode escape to produce the character in python. We can add a hat ^ (also called a circumflex) by putting the unicode escape after the letter you want to add a hat to. This is typically used to denote unit vectors. A useful one in engineering is the hat ^ symbol. There are a couple of special characters that will combine symbols. For instance, the code for β is 03B2, so to print β the command is print('\u03B2'). If the Show Subscripts and Greek Symbols option in the Preferences dialog is selected, then EES variables having Greek alphabet names will be displayed as Greek symbols. ![]() To print any character in the Python interpreter, use a \u to denote a unicode character and then follow with the character code. If you see utf-8, then your system supports unicode characters.
0 Comments
Leave a Reply. |