Given the following 4 points on the Cartesian plane: (1,1), (3,1), (3,5) and (1,5), which form a rectangle, write a program that asks the user to enter two numbers decimals, the first corresponding to the x coordinate and the second to the y coordinate in a plane. The program should print True if the point (x,y) is inside the rectangle, or False otherwise. You must use the following message "Point is internal: x" replacing x with True or False as appropriate. in python2.7
def inside_rectangle(x, y): if x >= 1 and x <= 3 and y >= 1 and y <= 5: return 'Point is internal: True' else: return 'Point is internal: False' inside_rectangle(2, 3)