간단한 Bool 논리 연산들
2024. 2. 13. 21:21ㆍ코딩 교훈 기록
True * True = True
True * False = False
False * False = False
True / True = True
False / True = False
True + True = True
False + False = False
True - True = False
True - False = True
False - False = False
'코딩 교훈 기록' 카테고리의 다른 글
파이썬 f-string 문자열 포맷팅 (소수점 자릿수 지정) (0) | 2024.02.23 |
---|---|
재귀 호출하는 함수 코드 2개 비교 (0) | 2024.02.17 |
함수 내 global 선언이 필요한 객체와 그렇지 않은 객체 (0) | 2024.02.13 |
리스트 컴프리헨션과 조건문 (0) | 2024.02.11 |
리스트 언패킹 하는 2가지 방법의 차이 (0) | 2024.02.05 |