python only prints integers

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Jan 7 02:09:03 EST 2011


On Fri, 07 Jan 2011 03:32:54 +0000, Edward A. Falk wrote:

> In article
> <cd9d1c80-b1d2-4d20-9896-a6fd77bd7db2 at j25g2000yqa.googlegroups.com>, Ian
>  <ian.g.kelly at gmail.com> wrote:
>>
>>In Python 3, the '/' operator always performs true division.
> 
> How can I get integer division?


>>> 25//4
6


-- 
Steven



More information about the Python-list mailing list