l = 
print "list has items"
if not l:
print "list is empty"
Source: python – How to check if array is not empty? – Stack Overflow
Required fields are marked *
Notify me of new comments via email.
← HTML Scraping Python
Insert at first position of a list in Python →
Create a free website or blog at WordPress.com.