Jump to ratings and reviews
Rate this book

Learn to Code by Solving Problems: A Python Programming Primer

Rate this book
Learn to Code by Solving Problems is a practical introduction to programming using Python. It uses coding-competition challenges to teach you the mechanics of coding and how to think like a savvy programmer.

Computers are capable of solving almost any problem when given the right instructions. That’s where programming comes in. This beginner’s book will have you writing Python programs right away. You’ll solve interesting problems drawn from real coding competitions and build your programming skills as you go.

Every chapter presents problems from coding challenge websites, where online judges test your solutions and provide targeted feedback. As you practice using core Python features, functions, and techniques, you’ll develop a clear understanding of data structures, algorithms, and other programming basics. Bonus exercises invite you to explore new concepts on your own, and multiple-choice questions encourage you to think about how each piece of code works.

You’ll learn how

By the end of the book, you’ll not only be proficient in Python, but you’ll also understand how to think through problems and tackle them with code. Programming languages come and go, but this book gives you the lasting foundation you need to start thinking like a programmer.

336 pages, Paperback

Published June 21, 2021

95 people are currently reading
150 people want to read

About the author

Daniel Zingaro

6 books4 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
12 (37%)
4 stars
10 (31%)
3 stars
6 (18%)
2 stars
3 (9%)
1 star
1 (3%)
Displaying 1 - 4 of 4 reviews
Profile Image for William Schram.
2,353 reviews99 followers
November 2, 2024
Daniel Zingaro wrote Learn to Code By Solving Problems. The book utilizes the Python Programming Language to solve snippets of problems from coding competitions. The book is great for the beginner. It describes the logic Zingaro uses to solve the problem and covers the tool he will use during that chapter.

Along the way, Zingaro introduces lists, dictionaries, loops using for, loops using while, and more. Zingaro covers algorithmic efficiency in the final chapters of the book. The problems listed have time limits for how long they run, so you could use one method to solve it, but it would exceed the requisite time.

I enjoyed the book. Thanks for reading my review, and see you next time.
2 reviews1 follower
December 6, 2021
I was recently asked to review this book by the author. This book teaches you the basics of Python programming. However, it does not use the typical approach of first showing a programming concept and then applying it. Instead, each chapter introduces a problem and then demonstrates a concept that can be used to solve the problem. I found this way of teaching programming quite nice and gives the reader a good understanding of why various concepts are useful.

Programming problems can often be difficult to understand. However, I found that the book presented each problem in a way that is easy to comprehend. The solutions are described step-by-step and are easy to understand.

I found this way of teaching very nice since it also demonstrates the problem-solving skills used when programming. Additionally, it provides some nice concrete problems to solve. The chapters also list extra problems for the user to solve on their own. Overall, it is a really enjoyable book that provides a nice introduction to the basics of programming and problem-solving.
199 reviews2 followers
December 2, 2022
I am very impressed by NoStarch Books, in how the materials are always presented well and with pedagogy and learning in mind. Also learn a new thing in the judges thing.

The author does not just teach syntax but also algorithmic thinking and planning (liked the Big O concept at the end). The check-in questions can be tricky but they really seek to teach. This book is suitable for beginners to intermediates.
1 review
January 28, 2025
This book is too easy for a real learner to devote into using computers to solve problems or a real algorithm competitor. Although the writing of this book is very orderly and clear, it is too easy for me, as an ACM-ICPC algorithm competitor, so the score is not very high. But it can be a good introduction about solving problems by using coding.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.