November 27th, 2012, 01:25 AM
Question about boolean results
a = 'test'
b = 'test2'
a<b gives True
a>b gives False
Why does a<b result in True and a>b gives False?
November 27th, 2012, 09:02 AM
In a dictionary of the English language, which word comes first?
"a" or "anteater"?
Your issue is string comparison.
[/code] are essential for python code and Makefiles!
December 2nd, 2012, 04:32 AM
when you compare text you will find 'a' < 'b' < 'c' <.....'z'
if you compare numbers as text you will find
'1' < '2' < ...'9' < 'a' < 'b' < .........'z'
and space ' ' < 1