I assumed the check(word) function returned a bool. The return value wasn't specified in the docstring. Of course, lacking a partner, I wrote it myself, so unfortunately I already knew what it was doing.