<p><br>
On Oct 7, 2012 12:47 PM, "Arnej Duranovic" <<a href="mailto:arnejd5@gmail.com">arnejd5@gmail.com</a>> wrote:<br>
><br>
> When I type this in the python idle shell ( version 3...) :<br>
>             '0' <= '10' <= '9'<br>
> The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9</p>
<p>Since they are strings it looks at these character by character. Since '0' < '1' < '9' , the 0 in '10' has no effect on the order.  Compare 'a' < 'ba' < 'i' .</p>

<p>boB</p>