python/basic
[Python] 연산자(Operators) - (4) 논리 연산자
wjwkddyd221001
2023. 5. 31. 15:31
개요
파이썬 연산자는 다음과 같습니다.
- 산술 연산자(Arithmetic Operators)
- 할당 연산자(Assignment Operators)
- 비교 연산자(Comparison Operators)
- 논리 연산자(Logical Operators)
- 식별 연산자(Identity Operators)
- 멤버 연산자(Membership Operators)
- 비트 연산자(Bitwise Operators)
논리 연산자
and | AND 연산 | x < 5 and x < 10 |
or | OR 연산 | x < 5 or x < 4 |
not | 조건문을 부정 | not(x < 5 and x < 10) |