[Tutor] (no subject)

Lucas Prado Melo lukepadawan at gmail.com
Thu Sep 10 11:51:49 CEST 2009


On Thu, Sep 10, 2009 at 6:44 AM, Dirk Wangsadirdja <dirk at pensiun.com> wrote:

> I tested it and it works. But I dont understand why it works. Can someone
> please explain it further? Thanks.

~i == -i - 1

http://en.wikipedia.org/wiki/Two%27s_complement
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090910/9ca45c9a/attachment.htm>


More information about the Tutor mailing list