Companion site

From Curiosity to Code

A Beginner's Journey to Thinking Like a Programmer with Python

The book teaches you to think like a programmer by walking you through building a simple game and improving it step by step.

This site supports the book without replacing it.

Here, you can browse the source code, compare each version, and continue your journey beyond the book. If you are reading the book, follow along with the chapters. If you are starting here, begin with Chapter 1 and build from there.

Take your time. Try things. Break things. Fix them.
That is how this works.

What readers will find

  • Python source files by chapter
  • A clean guide to the evolving guessing game
  • Optional challenge ideas
  • Troubleshooting help for beginners
  • A place for future workbook pages and videos

Start here

1. Run the code

Open the chapter guide, view the source files, and run them locally with Python 3.

Open chapter guide

2. Set up Python

Use the getting started page if this is your first time running Python files from a repository.

Read setup guide

3. Keep going

Try the optional extensions after you finish the main version of the game.

See challenge ideas

Chapter map

  1. Chapter 1 — Hello, world
  2. Chapter 2 — Guessing game version 1
  3. Chapter 3 — Guessing game version 2
  4. Chapter 4 — Guessing game version 3
  5. Chapter 5 — Guessing game version 4
  1. Chapter 6 — Guessing game version 5
  2. Chapter 7 — Guessing game version 6
  3. Chapter 8 — Guessing game version 7
  4. Chapter 9 — Guessing game version 8
  5. Chapter 10 — AI prompts and next steps

For readers

Type the code from the book. Compare your work. Run it. Break it. Fix it. Then try one small improvement of your own.

For the future

This site is ready to grow into a fuller learning hub with workbook pages, downloadable bundles, and chapter support videos.