I am working on a project with a few functions. In most of them I create a list, iterate through the list and check if a tuple (square in the code below) from a different li