+ 3

How to define and print superscript and subscript numbers in python?

Printing cm square , writing chemical formulas

17th Dec 2018, 9:49 AM
Pema Gyalpo
Pema Gyalpo - avatar
4 Antworten
+ 7
you can do this using unicode https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts print('x\u00b2')#will give x² print('x\u00b3')#will give x³ print('x\u2080')# will give x₀
17th Dec 2018, 10:27 AM
Rishi Anand
Rishi Anand - avatar
+ 1
Thank You Rishi Anand
17th Dec 2018, 11:13 AM
Pema Gyalpo
Pema Gyalpo - avatar
0
Please mark solve in question title , and mark best answer, thanks.
17th Dec 2018, 12:33 PM
Gordon
Gordon - avatar