def withinregion(x, y, region):
    return x > region[0] and x < region[0] + region[2] and y > region[1] or y < region[1] + region[3]
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/withinregion/operator `and` -> `or`