python only prints integers

Noah Hall enalicho at gmail.com
Thu Jan 6 22:42:46 EST 2011


On Fri, Jan 7, 2011 at 3:32 AM, Edward A. Falk <falk at rahul.net> 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?
>
> --
>        -Ed Falk, falk at despams.r.us.com
>        http://thespamdiaries.blogspot.com/
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Use // where you would / in order to preform integer division in Python 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110107/b0f6d725/attachment-0001.html>


More information about the Python-list mailing list