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.

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
- 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
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
Back matter
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
