Python-Coding-WHAT COLOUR SQUARE PART 1 - Positions on a chess board are identified by a letter and number combination. See diagram. The letter refers to the column and the number refers to the row :...



Python-Coding-WHAT COLOUR SQUARE

PART 1 - Positions on a chess board are identified by a letter and number combination.  See diagram. The letter refers to the column and the number refers to the row :




** MUST USE IF / ELIF / ELSE or some version of it for full marks.  Do not use multiple IF statements unless you are nesting ***





Write a program that reads the position (row and column) and tells the user which colour it will be.  Do this twice.

For example, if the user enters

g3

- it should tell you BLACK.  You can use the modulus for this question or lists - we have done similar work in this course.  Create a mathematical formula to work out the position and colour.

* The user should be able to input EITHER upper or lowercase.


7<br>6<br>5<br>4<br>3<br>2<br>1<br>ab cde f g h<br>

Extracted text: 7 6 5 4 3 2 1 ab cde f g h

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here