4 ms·
Maybe a stupid question but I've never learned much about parity and this sounds like a good opportunity. Can you give some definitions? Are you talking about e
by mikevin 5y ago
Maybe a stupid question but I've never learned much about parity and this sounds like a good opportunity. Can you give some definitions? Are you talking about error checking parity or 'evenness' parity?
I'm guessing the last one since that's what fits your LSB comment(when using 'evenness' not 'oddness'). But in that case I'm not sure your example is doing, my python might be too rusty but is it something like: get the unicode representation(int) of each character in a string, xor the results and get the LSB?
- klyrs 5y agoWhat I meant by parity was 'evenness' -- but the ultimate purpose was to explain the utility of the xor function provided by the operator module. But, the more useful concept is parity for error detection, which my example clearly fails at.