Guidelines
Practice
반대를 반환하는 not 연산자
not
연산자는 불리언 값의 반대를 반환합니다. not 연산자는 조건문과 결합하여 특정 조건이 False
일 때 작업을 수행하도록 합니다.
not 연산자 사용
not
연산자는 참(True)이면 거짓(False)을, 거짓이면 참을 반환합니다.
not 연산자 사용법
is_logged_in = False print("not is_logged_in:", not is_logged_in) # True if not is_logged_in: print("로그인이 필요합니다.")
Guidelines
AI Tutor
Publish
Design
Upload
Notes
Favorites
Help