+ 5
How do you write a superscript and subscript in python?
3 odpowiedzi
+ 3
By using str.maketrans() and str.translate() methods, like so:
https://stackoverflow.com/questions/24391892/printing-subscript-in-JUMP_LINK__&&__python__&&__JUMP_LINK
Please note that you can easily get answers to such questions using google; this was the first result :)
+ 1
Just A Rather Ridiculously Long Username To the defence of Charles , It is an interesting question. I looked up the answer only because it was posted on SL. this would not have happened if he just had googled it.
0
In order to write superscripts and subscripts in python, we can easily use the '$\mathregular{Normal^{superscripts}}#x27; and '$\mathregular{Normal_{subscripts}}#x27;, respectively.