Python初级问题,求大神教

img


循环三次输入不同坐标值,每次输入后判断在第几象限或其他位置。循环三次输入不同坐标值,每次输入后判断在第几象限或其他位置

x = int(input())
y = int(input())

print("(",x,",",y,")",end="")
if(x<0 and y<0):
    print(" belongs to 3rd Quadrant.")
elif(x<0 and y>0):
    print(" belongs to 1st Quadrant.")
elif(x>0 and y>0):
    print(" belongs to 2nd Quadrant.")
else:
    print(" belongs to 4th Quadrant.")