You must log in or register to comment.
That’s exactly what I was getting at. Getting length of an empty list would not even enter the loop.
Yes. If it’s empty. But in cases where you need to check, it might as well not be.
That’s exactly what I was getting at. Getting length of an empty list would not even enter the loop.
Yes. If it’s empty. But in cases where you need to check, it might as well not be.