Write a function to check if a list is empty or not
Topic: Write a function to check if a list is empty or not
Solution
def list_is_empty(a_list): if not a_list: return True else: return False
List all Python Programs
Solution
def list_is_empty(a_list): if not a_list: return True else: return False