Home / Python Tips Generated By ChatGPT / Checking If a List Is Empty in Python Preferred ways to check if a list is empty. Source Code my_list = [] if not my_list: print("List is empty!")