Boolean27. The numbers x, y are given. Check the truth of the statement: "The point with the coordinates (x, y) lies in the second or third coordinate quarter".

Solution in Python 3:

import numpy as np

x,y = list(np.random.choice(range(-10, 11), 2))
print("x = {0}, y = {1}".format(x,y))

b = (x < 0)
print("The point lies in the 2nd or 3rd coordinate quarter: ", b)