Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python using boolean len

my_list = []
if not len(my_list):
    print("the list is empty")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #boolean #len
ADD COMMENT
Topic
Name
6+5 =