Unicode: I would like to use the radical symbol (U + 221A) in my script. How do you print the Unicode without an error?

Super/Subscript: Is it possible to make a variable superscripted (and subscripted, for that matter)?

Unicode: I would like to use the radical symbol (U + 221A) in my script. How do you print the Unicode without an error?

Super/Subscript: Is it possible to make a variable superscripted (and subscripted, for that matter)?

@1st question, I believe Python is unicode capable. so i guess normal print of any unicode character is possible.

@2nd question: what do you mean by that?

Sub/superscript is done by the program displaying the text, and different programs have different ways of doing it. The Tkinter text widget, for example, uses offset (positive is super, negative is sub).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.