[Tutor] string rules for 'number'
Arnej Duranovic
arnejd5 at gmail.com
Sun Oct 7 19:46:21 CEST 2012
When I type this in the python idle shell ( version 3...) :
'0' <= '10' <= '9'
The interpreter evaluates this as true, WHY? 10 is greater than 0 but not 9
Notice I am not using the actual numbers, they are strings...I thought that
numbers being string were ordered by their numerical value but obviously
they are
not? Can anyone explain this to me and explain how strings with numbers in
them are ordered?
Thx in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121007/a36a42a4/attachment.html>
More information about the Tutor
mailing list