WEBINAR:
On-Demand
Building the Right Environment to Support AI, Machine Learning and Deep Learning
Use one of the following methods to check if a list is empty in Python:
a. If not listname:
print("list is empty")
b. if len(listname) == 0:
print("list is empty')
Visit the DevX Tip Bank