how to check if a list has stuff in it python code example Example: check if list is empty python if len(li) == 0: print('the list is empty')