
Learn to Code by Solving Problems: A Python Programming Primer
Primer: Learn to Code by Solving Problems is a beginner-focused Python book that teaches programming through coding-challenge problems. Its topic progression includes core Python constructs, data structures, functions, algorithms and Big O notation.
At a glance
- Uses coding-competition challenges to introduce programming and problem-solving.
- Covers variables, strings, decisions, loops and Python collections including sets, lists and dictionaries.
- Moves from functions and top-down design to complete-search algorithms and Big O notation.
- Includes bonus exercises and multiple-choice questions, according to the listing.
Reference price: $53.99
Price checked: Nov 19, 2026
View offerAhead of Black FridayExplore the selectionOften bought together
Pros and cons
Pros
- Challenge-based lessons give beginners concrete problems to work through while learning Python.
- The listed curriculum extends beyond syntax to data organization, search and algorithm efficiency.
Technical specifications
7 specifications| Publisher | No Starch Press |
|---|---|
| Publication date | June 21 2021 |
| Language | English |
| Print length | 336 pages |
| ISBN-13 | 978-1718501324 |
| Dimensions | 18.1 x 2 x 23.9 cm |
|---|---|
| Weight listed | 629 g |
What to know before buying
Listing details to confirm
The description presents this as a beginner introduction, while also calling it a possible second step for learners, so it may suit someone with basic programming familiarity as well as a new learner.
Who is it for?
A good fit for
- New programmers seeking a structured introduction to Python through problem solving.
- Learners who want exposure to data structures, algorithms and basic efficiency analysis.
Less suited to
- Readers looking for a reference focused only on Python syntax or a project-led app-building course, neither of which is established by the listing.
Customer reviews on Amazon
- 5 stars
77% 77% - 4 stars
14% 14% - 3 stars
8% 8% - 2 stars
1% 1% - 1 star
0% 0%
Customer feedback describes the book as a useful primer for new programmers and a possible next step for beginners, with positive comments about its content and beginner suitability. That reported reception aligns with the listing's challenge-based introduction and broad fundamentals coverage, though aggregate ratings do not establish which topics or teaching elements individual readers preferred.
Positive themes
- Customer feedback characterizes the content as a good Python primer.
- Feedback describes the book as suitable for beginners.
Frequently asked questions
What does the book teach?
The listing describes lessons on Python fundamentals such as variables, strings, decisions, loops, collections and functions, along with algorithms and Big O notation.
Is it intended for beginners?
The listing calls it a beginner's book, and customer feedback describes it as useful for new programmers. Its description also frames it as a possible second step, so readers' starting experience may vary.
How are lessons structured?
The book uses problems drawn from coding competitions, with bonus exercises and multiple-choice questions described as part of the learning material.
Alternative options

The Python Coding Book: A relaxed and friendly programming textbook for beginners
$60.00

LLM Engineer's Handbook: Master the art of engineering large language models from concept to production
$75.99

Python Illustrated: Not another boring Python book, learn programming the fun way
$50.99

Ultimate Neural Network Programming with Python: Create Powerful Modern AI Systems by Harnessing Neural Networks with Python, Keras, and TensorFlow (English Edition))
$47.14

Build with Claude Code: From zero to deployed apps with AI-assisted development
$63.99

Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
$56.99

Building AI Agents for Finance: Build and deploy robust financial agentic systems with advanced reasoning, architectures, and Python
$75.99

A Simple Guide to Python: Learn Python engineering the modern way – from first principles to hands-on coding exercises and AI-assisted development
$28.99

























