bit operations with python?

Josiah Carlson jcarlson at uci.edu
Fri Nov 5 03:32:21 EST 2004


"Alexander Semenov" <sav at ulj.menatepspb.com> wrote:
> 
> Hi,
> 
>  J> Take part2.dat and XOR(the ^ operator) each byte of it with its own
>  J> value and put the result into a new file called part3.dat.
>  J> # Finally take part3.dat and add (+) every byte together, append
>  J> _solution to the resulting number, and enter it in the box below."
> 
> I think, it's a joke. Result will be 0, python not needed.

If you go to the site, you discover the point is to work out the
implications of binary operations on values, and the value of reading
directions.


 - Josiah




More information about the Python-list mailing list