Beginning Python Programming – Code Breaker

Welcome… this is a simple example of some basic python commands that creates a code breaking game. The explanation lines have been commented out so you can simply copy and paste the whole document into IDLE (or similar) and see it working, or print to use as a help guide. The task can be extended to include a longer code, different scoring systems, characters instead of numbers, password guesses or allow one player to enter a code that the other has to guess then swap turns… and loads more!

(If you find the resource useful, please leave a review as it helps other teachers find it)



Save for later
  • Python-Programming-Hints---Code-Breaker.docx

About this resource


Created: May 23, 2018

Updated: Jul 15, 2019


docx, 15 KB


Report a problem

Creative Commons "Sharealike"

Creative Commons "Sharealike"