The Snake Pit

The Snake Pit 🐍

37 puzzles across six tiers, from Egg to Basilisk. Predict the output, find the bug, fix the code. Every "it prints" here was checked by actually running the code, so if you and the pit disagree, the pit is right and there is something delicious to learn.

1Stowaway 0 XP

Each solved puzzle is 60 XP. Solving stays private to you: the public counter only tracks lessons.

🥋 How to train Read the code and commit to a prediction before you reveal anything. For fix and bug puzzles, open the code in the Playground, break it, repair it, run it. Getting it wrong is how the belt is earned; guessing and revealing is not.
🏆 Basilisk Slayer Solve every puzzle in the pit and you unlock an achievement. The Basilisk tier is genuinely hard: late-binding closures, identity versus equality, shallow copies, exhausted generators. These are the bugs that catch professionals, so meeting them here, safely, in a puzzle, is a real head start.