Karina.DataScientist · @karinadatascientist

Posted 5 days ago
36.25K followers
2.57K views
45 likes
1 comments
2 shares

You can learn Python by playing a game. Yes, not only SQL. Gamification works because you stop thinking about learning and start thinking about winning. The Python syntax sticks because you needed it to progress, not because you memorised it from a cheatsheet. These eight free platforms teach you real Python through dungeons, karate challenges, fantasy worlds, multiplayer battles, and detective missions. 1. Codédex — codedex.io Journey through a fantasy world learning Python, earning XP and unlocking regions as you progress. Feels like a JRPG. Full Python fundamentals track is free. Clean interface, designed for beginners and adults alike. 2. CodinGame — codingame.com Solve increasingly difficult puzzles and compete in multiplayer coding contests using Python. Supports 25 languages but Python is the most popular. 3. Codewars — codewars.com A karate-themed platform where you train by solving Python challenges called kata. Community-based — you can view other players' solutions after solving, which is often where the real learning happens. Completely free. 4. Exercism — exercism.org 146 Python exercises with automated feedback and free mentoring from real developers. Less visually game-like but earns badges and tracks streaks. 5. Battlesnake — play.battlesnake.com Write Python to control a snake that battles other snakes in real time. The last snake standing wins. Completely free — note that you will need to deploy a simple web server to play, so better suited to intermediate learners. 6. CheckiO — py.checkio.org Navigate through floating islands by solving Python challenges. Free tier gives access to a meaningful set of missions before hitting the paywall. 7. Advent of Code — adventofcode.com An annual coding challenge released every December, but all previous years are free to play anytime. 8. Making Games with Python & Pygame — inventwithpython.com/pygame A free online book covering 11 classic games built with Python — Tetris, Snake, Connect Four, Simon, and more