Home > Enterprise >  Is there any command to make the math signal "not equal" appear in a string?
Is there any command to make the math signal "not equal" appear in a string?

Time:05-24

For example, to print the greek letter alpha I used \u03B1 and the output is:

α

Now I want to print not equal like this:

CodePudding user response:

you could do the following :

print(u'\u2260')

CodePudding user response:

u"\u2260"

source: https://www.fileformat.info/info/unicode/char/2260/index.htm

You could obtain most UTF encodings with a google search :)

  • Related