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.