So you are now using a real, superior text editor and you want to be able to add Unicode characters for whatever reason.
First, you need to be in insert mode so begin by pressing ‘i’. Hold down ctrl + v, let go, then press ‘u’, let go, now enter the Unicode key sequence. Voila!
One way to add a Unicode character to Python’s REPL is to add it as a string literal.
Suppose you had the phrase “My Spanish brown eyed girl.”
To print the phrase with a Jerusalem cross between each word you would find on the internet a Unicode character reference that gives you the number sequence in this case, U+2629.
Since join method accepts one argument lets first place our sentence in a variable.
my_girl = 'My', 'Spanish', 'brown', 'eyed', 'girl.'
print('\u2629'.join('My Spanish brown eyed girl.'))
This will output the following:
My☩Spanish☩brown☩eyed☩girl.
Donald F Cooley's thoughts