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
Simplification of the code
if start <= x <= end: # start x is between start and end # do stuff