Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Print superscript characters in Python
-
You can also add Unicode superscripts to the characters: \u00B2
for more information see here: WikipediaResult is something like this:
print(''.join('m/s' + '\u00B2')) print('m/s\u00B2')
-
-
accellerazione_finale = 7654 print(f"L'accellerazione é: {accellerazione_finale:,} m/s\u00B2")
L'accellerazione é: 7,654 m/s²
-
Thank you very much for the answers !
-
Hello everyone. Can you still help me: how do I write a calculation under the square root? Thanks to who will answer me
-
I don't think there is a unicode overline that does what you want. You could try U+0305
Really, this is a job for mathml or latex.
I don't think safari supports mathml. -
Thank you very much
-
@cvp
Hi. In this case how can I put the two above m ?:area_pressione = float(input("Inserisci l'area(m): "))
Thanks and sorry if I still don't understand ...
I still wanted to ask: Can I have certain print commands written in a different color than black?
Thank you -
area_pressione = float(input("Inserisci l'area(m\u00B2): ")) Inserisci l'area(m²):
-
@GiovaBici see here
-
Thank you very much!