The complete book, online

Hands-On Python for Beginners

Read every chapter here, start to finish. Wherever the book shows code, press Watch it run to see what it does, step by step.

1Pick a chapter

Use the contents on the left. Each chapter opens into its sections, just like the book.

2Read as you would in print

All the text, figures, tables and exercises are here, chapter by chapter.

3Watch the code run

Where it helps, an example plays as a simple animation with a flowchart. Click any line to see just that line.

Front matter

Part 0: Confidence Before Code

Part 1: Getting Comfortable with Python

Part 2: Teaching Python to Think

Part 3: Writing Cleaner and Smarter Python

Part 4: Classes (Done the Right Way)

Part 5: Automation That Actually Saves Time

Part 6: Web and Modern Data

Part 7: Debugging, Testing, and Professional Habits

Part 8: Capstone, Web, and Machine Learning

Part 9: Everyday Automation Recipes

Part 10: What Comes Next

Appendices

Back matter