Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 3
How to define and print superscript and subscript numbers in python?
Printing cm square , writing chemical formulas
4 Respostas
+ 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ā
+ 1
Thank You
Rishi Anand
0
Please mark solve in question title , and mark best answer, thanks.