Re: back to school... "1/3" --> float question, just eval?

kirby urner <[email protected]> Thu, 9 Apr 2020 10:42:34 -0700
Newsgroups gmane.comp.python.education
Message-ID <CAPJgG3QXACER7+6G1W-DACUGSq8LS2r65nso+St4=BUUPCRxiA@mail.gmail.com>
>
>
> Try the following:
>
> from fractions import Fraction
> float(Fraction("1/3"))
>
> Knowing you, I'm sure you can figure out plenty of useful applications of
> this. :-)
>
> André
>
>
A totally excellent suggestion!

I'm going to share that, by bringing campers here on tour, saying "this is
where Python educators hang out!"

Maybe some of them will want to join us someday.

Kirby

_______________________________________________
Edu-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/edu-sig.python.org/