in_range(low, value, high) that returns True if value lies between low and high inclusive, using a single chained comparison expression (e.g. low <= value <= high), not two separate and-joined comparisons written with and.in_range(1, 5, 10)
True
1 <= 5 <= 10 holds.
in_range(1, 15, 10)
False
15 is above the upper bound.
Python lets you write `a <= b <= c` directly.
This is equivalent to (but shorter than) `a <= b and b <= c`.