python逻辑运算符

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图

0 or 2 and 3 and 4 or 6 and 0 or 3




运行结果及报错内容

此题结果为何是4?
and和or怎么比较优先级

我的解答思路和尝试过的方法
我想要达到的结果

优先级 not>and>or

所以这道题应该怎么做?