Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Please don't attach images since text will have better accessibility for readers. The expression is as below and is a result of operator precedence : https://docs.python.org/3/reference/expressions.html#operator-precedence >>> 7+3==10 | 7+1==8 and not(10!=10) False >>> (7+3) == (10 | (7 +1)) == 8 False >>> (7+3) == (10 | (7 +1)) == 10 True It would be good to use parens to indicate explicit bracing that helps in readability and understanding it in future for complex operations in 1 line. Please refrain from creating multiple issues as explained in the other issues using stack overflow, python tutor, etc will be better forums to ask for help https://bugs.python.org/issue42460 https://bugs.python.org/issue42456 https://bugs.python.org/issue42459 ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42462> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com