|
|
Subscribe / Log in / New account

Linux distributions and Python 2

Linux distributions and Python 2

Posted Oct 2, 2018 9:09 UTC (Tue) by cclauss (guest, #127609)
In reply to: Linux distributions and Python 2 by lambda
Parent article: Linux distributions and Python 2

Adding from __future__ import division will print a fractional result in both Python 2 and Python 3.

Changing / --> // will print zero in both Python 2 and Python 3.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds