Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

2's Complement in python help.

38 views
Skip to first unread message

lokesh...@gmail.com

unread,
May 23, 2013, 5:54:02 AM5/23/13
to
Can anyone give me an idea of how to find the 2's Complement in python with an example

Chris Angelico

unread,
May 23, 2013, 6:03:43 AM5/23/13
to pytho...@python.org
On Thu, May 23, 2013 at 7:54 PM, <lokesh...@gmail.com> wrote:
> Can anyone give me an idea of how to find the 2's Complement in python with an example

Do you know what two's complement is? (Not to be confused with two's
compliment, which is when numbers start telling you how clever you
are.) If not, you should probably look it up on Wikipedia or
something. Once you know what the term means, you can start
implementing in Python.

ChrisA
0 new messages