x = float(input("Ingresa la coordenada X: "))
y = float(input("Ingresa la coordenada Y: "))

if x > 0 and y > 0:
    print("Primer cuadrante (I)")
elif x < 0 and y > 0:
    print("Segundo cuadrante (II)")
elif x < 0 and y < 0:
    print("Tercer cuadrante (III)")
elif x > 0 and y < 0:
    print("Cuarto cuadrante (IV)")
elif x == 0 and y == 0:
    print("El punto está en el origen.")
elif x == 0:
    print("El punto está sobre el eje Y.")
elif y == 0:
    print("El punto está sobre el eje X.")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: