I am new to python. I have tested my interpreter using following code,
In [1]: 2 and 3
Out[1]: 3
In [2]: 3 and 2
Out[2]: 2
In [3]: 3 or 2
Out[3]: 3
In [4]: 2 or 3
Out[4]: 2
In the above, take 2=0010 and 3=0011. the result is,
+ 0010
0011
----
0010=2
But Out[1] gave the 3(not exact) and out[2] gave the 2(exact).
What is the difference in two cases?