💻☕프로그래밍 언어/Python
파이썬 if not 간단 정리
들판속초록풀
2024. 11. 1. 21:14
if not 뒤에 나오는 조건을 만족하지 못하면 아래 코드를 수행함
if not number > 100:
print("Nooooo")
# number가 100을 넘지 않으면 Nooooo를 출력한다