TypeError(“‘bool’ object is not iterable”,) when trying to return a Boolean
Look at the traceback: Your code isn’t iterating the value, but the code receiving it is. The solution is: return an iterable. I suggest that you either convert the bool to a string (str(False)) or enclose it in a tuple ((False,)). Always read the traceback: it’s correct, and it’s helpful.