that's weird as the richie's code really seems to be the correct one and works just as chris' code but indeed saves some extra strokes.

what comes to the trick, len() is not a long keyword and thus using it is not always (if ever) reasonable.

anyways, the trick itself...
someone may try to explain why it works like it does (richie? )
thinking how bits translate from string to binary format for the comparison and then back to decimal does not work.
at least not in my mind.
my mind says the number should be lot higher.
_________________________
!

download KiXnet