Caterpillar interview question

Find bug in python code and resolve it: topic was lists for me