[Tutor] small graphics question
Mark Lawrence
breamoreboy at gmail.com
Tue Feb 9 18:05:35 EST 2021
On 09/02/2021 22:36, nathan tech wrote:
> Hi Folks,
>
>
> I was originally going to ask this over on the wx python mailing list,
> but I found myself hesitating.
>
> I am pondering a simple question:
>
> How do I write x to the power of y, in python/
>
> Not 5^2 for 5 squared, but 5 superscript 2? or 5 superscript x where x
> is any number?
>
> Similarly, how do I produce fractions??
>
> I asked here in the end because I figure for wx python it is just
> tracking down that character sequence and then writing it on screen
> (which I can do!)
>
> Thanks in advance,
>
> Nathan
>
Please see this list
https://docs.python.org/3/library/stdtypes.html#index-13 which I think
answers both of your questions.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list