Beginning Python Programming – Guessing Game

Hi… This is a simple example of some python commands that creates the start of a random number guessing 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. Extension work could include adding a way to use the currently unused ‘playerScore’ variable, checking if the player gets it in 1 guess and gives a special message and lots more.

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



Save for later
  • Python-Programming-Hints---Guessing-Game.docx

About this resource


Created: May 21, 2018

Updated: Jul 8, 2019


docx, 15 KB


Report a problem

Creative Commons "Sharealike"

Creative Commons "Sharealike"