Normal Sudoku rules apply. The final grid will contain a 1-width python, which begins and ends in the black spaces. The python may not touch itself orthogonally or diagonally.
Numbers in each blue square show how many of its 8 surrounding squares are python. Blue squares cannot be python.
The final grid contains 3 ghosts. Ghosts are identical copies of the python (shape, digits, orientation). Blue squares do not care about the ghost, only the original python. Ghosts may overlap with the python and each other.
Numbers in each red square show how many different ghosts (not how many ghost squares) are in their 8 surrounding squares. Red squares cannot be on a ghost (but may be on the python).
Not all possible red and blue squares are given.
Visit my website for print-friendly and colorblind accessible versions of all my puzzles.
Solution code: Bottom row, left-to-right