class Range:
GOOD=(1,100)
BAD=(200, 300)
class Test:
def test1(self):
key = get_map_key()
range = Range.key
What is the correct way to use constant defined in Range? The "key" is computed from a function. Possible value for "key" is GOOD, BAD.