-
False in Python🐍 파이썬/파이썬 기본 문법 2022. 7. 17. 07:08
아래의 값들은 파이썬에서 False로 취급되고, 그외의 값들은 모두 True로 취급된다 !
False # a boolean expression None # None type 0, 0L, 0.0, 0j “”, (), [] # empty sequences {} # empty mapping
[[]] # caution ==> this is not a empty sequence :) so this is True
'🐍 파이썬 > 파이썬 기본 문법' 카테고리의 다른 글
함수를 함수의 변수로 넘기기 (0) 2022.07.18 [Function] 함수란 (0) 2022.07.18 working with file (0) 2022.07.17 isinstance(x,y) (0) 2022.07.17 [string] 문자열 자주 쓰이는 문법 정리 (0) 2022.07.17