Boolean34. The coordinates x, y (integers lying in the range 1-8) of the chess board field are given. Considering that the lower left board (1, 1) is black, check the truth of the statement: "This field is white".

Solution in Python 3:

import random

x,y = [random.randrange(1, 9) for i in range(0,2)]
c = (x+y)%2
print("x: ", x)
print("y: ", y)
print("The cell is white: ",(c==1))