← Back to challenges

Chess Board Squares

PythonHardalgebraalgorithmslogic

Instructions

Create a function that takes a chess board square's coordinate and return its color.

Alternative Text

Examples

chess_board("a1") ➞ "black"

chess_board("e5") ➞ "black"

chess_board("d1") ➞ "white"

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Anti Lists