Using while loop and if statement, I'm trying to get Python to tell me whether 
there are even or odd number of 1's in a binary representation.
For example, if I give Python a 00000111, then I want it to say that the binary 
representation given has an odd number of 1's.
If I give it 00010111, then it will tell me that there is an even number of 1's.
I'd appreciate any suggestion.
Thanks!
_________________________________________________________________
So many new options, so little time. Windows Live Messenger.
http://www.microsoft.com/windows/windowslive/messenger.aspx
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to