랭귀지/python

Python 빈 리스트 확인하는 방법

유키공 2021. 1. 8. 12:26

빈 Sequence(String / Tuple / List)는 False 값을 가집니다.
if not xxx:
   print("List xxx is Empty")