Question: Program Specification Checkerboard squares are colored in an alternating pattern of black and white squares. Given two integers representing a row and a column number

 Program Specification Checkerboard squares are colored in an alternating pattern of

Program Specification

Checkerboard squares are colored in an alternating pattern of black and white squares. Given two integers representing a row and a column number on a checkerboard, output White if the indicated square is white on the diagram above, or output Black if the indicated square is black on the diagram above. By convention, the first integer received as input will give the row, and the second will give the column of the indicated square, though in this particular case it doesnt matter due to the diagonal symmetry of the board. If either of the inputs are not valid, simply output Error and stop. Complete the file

Checkers.py

with your solution for this problem.

Sample Input and Output

Input 1

4 7 

Output 1

Black 

Input 2

8 6 

Output 2

White 

Input 3

6 -9 

Output 3

Error

please use python3

3 - Checkerboard Colors Column 2 3 4 5 6 7 8 1 4 Row No) w NH

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!