Hi, I had a quick question on how string compare works. If did '1001' <= '999' I get true. I know how the string compare works but I was wondering why it were so. Why doesn't the string length factor into the comparison? For example, If I compared character-by-character but also found how different the lengths are, I could avoid a wrong logical answer as in the example above. Any thoughts?
Thanks -- 0 1 0 0 0 1 1 1 1
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor