반영훈/Python
[sololearn]틀린문제-연산자우선순위
Banda
2019. 7. 12. 17:26
1. if not 1+1 == y or x == 4 and 7==8:
not = 틀려야 TRUE 하지만 1+1 ==y 가 TRUE이기때문에 FALSE or x==4(TRUE) and 7==8(FALSE) TRUE and FALSE 는 FALSE
결국 elif x>y:로 넘어가 TRUE -> print("no")