ananthakrishnan15.2001ï¼ gmail.com wrote:
> we can use 0b1100 instead of 1100.Then the output of
> binary.twos_complement(0b1100) will be 0b0100

That would be printed as `4`. Is that what you want?

Supposing we accept that `binary.twos_complement(0b1100) == 0b0100`. What would 
`binary.twos_complement(0b0011)` be equal to? What about 
`binary.twos_complement(0b00000011)`?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/NJY5FWUZXZ74DZG7T67ITV4A67MM3MVQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to