Aug-27-2017, 11:30 AM
my question here
Hi,
I am new to python. Please explain the below. Why one syntax is returning "True" while the second one returns False.
>>> print "[1, 2] > 'foo' = ", (1, 2) > 'foo'
[1, 2] > 'foo' = True
>>> print "[1, 2] > 'foo' = ", [1, 2] > 'foo'
[1, 2] > 'foo' = False
>>>
Thanks
Hi,
I am new to python. Please explain the below. Why one syntax is returning "True" while the second one returns False.
>>> print "[1, 2] > 'foo' = ", (1, 2) > 'foo'
[1, 2] > 'foo' = True
>>> print "[1, 2] > 'foo' = ", [1, 2] > 'foo'
[1, 2] > 'foo' = False
>>>
Thanks
my code here