Free to read online

Learn Python the friendly way.

Hands-On Python for Beginners: the whole book, right here. Build Projects and Automate Everyday Tasks.

Learn Python by building things you'll actually use.

What's inside

  • Install Python and VS Code step by step, with annotated pictures
  • Variables, loops, functions, files and classes, explained with everyday examples and flowcharts
  • Automate the boring stuff: rename files, build reports, send emails, fill forms and scrape web pages
  • Debug calmly, write tests, and use virtual environments like a professional
  • Build a web app and your first machine learning model
  • Practise with exercises in every chapter, with solutions online

Exercises and solutions are in every chapter.

Cover of Hands-On Python for Beginners

Welcome

Learn Python by building things you'll actually use.


Hands-On Python for Beginners

Build Projects and Automate Everyday Tasks

Nuruzzaman FaruquiLevin KuhlmannMahsa SalehiYun Zhao

Start reading
  • 31 chapters
  • 10 parts
  • 100% of the text
📖

The whole book

Every chapter, figure, table and exercise, laid out to read comfortably on any screen.

🎬

Watch code run

Where it helps you understand, a short animation shows what each line does to the computer's memory.

🧭

Follow the flow

Flowcharts light up as the code runs, so decisions and loops stop being mysterious.

✅

Exercises with answers

Try each exercise yourself, then reveal the solution and watch it work.

Chapter by chapter

Front matter

Part 0: Confidence Before Code

Prefer paper?

Some people like a book in their hands. The printed edition has everything you've read here, ready to keep next to your keyboard.

The printed book is coming soon.Keep reading online