Writing clean code means preventing errors before they happen. One way to achieve this is to python check if list is empty before performing operations. It’s a basic yet powerful practice that keeps your code organized, reliable, and easy to debug later. https://docs.vultr.com/python/examples/check-if-a-list-is-empty