From the Python documentation:
The expression
x and y
first evaluatesx
; ifx
is false, its
value is returned; otherwise,y
is evaluated and the resulting value
is returned.
Which is exactly what your experiment shows happening. All of your x
values are true, so the y
value is returned.