As per the python documentation,x<y<z comparison is translated to x<y and y<z and expression y is evaluated only once at most.
Now my question is , does an expression y ( look at the code below) is evaluated only once here?
if(x<y and y<z):
Twice: