E
Eduardo Elgueta
Hi All,
Would anyone be so kind to explain this?
-- begin --True
--end--
(Python2.3)
TIA.
Ed.
Would anyone be so kind to explain this?
-- begin --True
--end--
(Python2.3)
TIA.
Ed.
Hi All,
Would anyone be so kind to explain this?
-- begin --
True
--end--
(Python2.3)
TIA.
Ed.
* Eduardo Elgueta said:Hi All,
Would anyone be so kind to explain this?
-- begin --
True
--end--
True() > 300 True
() > [] True
[] > () False
'a' > 300 True
'a' > () False
() > 'a' > 300 True
[] > 'a' False
[] > 300 True
() > 'a' > [] > 300
False(176L,) > 300 True
(176L,)[0] > 300
If Python started trying to guess your intentions, and assumed that
you really meant to compare the values, a whole load of quite basic
things wouldn't work.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.