Hi, > en tapant 1/(3**2) le shells me donne 0
I think you're using Python 2, not Python 3. Python 3 automatically converts an integer to a float, Python 2 does not. > lorsque je tape 0,5 dans le shells il me renvoie (0, 5) Most programming languages follow the English (or US?) convention using dots, not commas's: so one half is 0.5 :) Best, Almar On Fri, Sep 13, 2019, at 15:20, [email protected] wrote: > en tapant 1/(3**2) le shells me donne 0, de plus lorsque je tape 0,5 dans le > shells il me renvoie (0, 5) > > -- > You received this message because you are subscribed to the Google Groups > "Pyzo" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/pyzo/3d27a7d8-cf9c-46bd-9fdd-78e7a2792608%40googlegroups.com > > <https://groups.google.com/d/msgid/pyzo/3d27a7d8-cf9c-46bd-9fdd-78e7a2792608%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Pyzo" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/pyzo/a475c1f0-eaa2-4aec-8845-cfde4645a931%40www.fastmail.com.
