I have an integer value x, and I need to check if it is between a start and end values, so I write the following statements:
x
start
end
It can be rewritten as:
start <= x <= end:
Or:
r = range(start, end + 1) # (!) if integers if x in r: ....