I am trying to implement an if
condition where I ensure two variables are within a certain range.
But, I want to somehow do it so I don't cause duplication (Example 1 <= x,y <= 100). Is there a cleaner way to do this?
if (1 <= int(pizzeria_location_x) <= int(dimensions)) and (1 <= int(pizzeria_location_y) <= int(dimensions))