Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 69)
69.
How can you check if a list is empty in Python?
if list.is_empty()
if len(list) == 0
if list.empty()
if not list
Answer: Option
Explanation:
Checking the length of the list is a common way to determine if it is empty.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.