# 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.

- [Original product page](https://loonieperks.com/product/learn-to-code-by-solving-problems-python-programming-primer)
- [View offer](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- Market: CA
- Language: en-CA
- Currency: CAD
- Category: [Books, Music & Hobbies &gt; Books, Music & Movies &gt; Books & Comics](https://loonieperks.com/books-music-and-hobbies/books-music-and-movies/books-and-comics)
- Price: 39.10 CAD
- Previous price: 53.99 CAD
- Discount: 28%
- Price checked: 2026-11-19T18:09:05.182Z
- Rating: 4.6 / 5
- Reviews: 97

Prices and deal status are the latest recorded data, not a guarantee of availability. Confirm the price and availability with the store.

## 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.

## 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.

## Specifications

### Book details
- Publisher: No Starch Press
- Publication date: June 21 2021
- Language: English
- Print length: 336 pages
- ISBN-13: 978-1718501324
### Dimensions and weight
- Dimensions: 18.1 x 2 x 23.9 cm
- Weight listed: 629 g

## Before you buy

- 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.

## 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 feedback

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.
- Positive themes: Feedback describes the book as suitable for beginners.

### Rating distribution

- 5 stars: 77%
- 4 stars: 14%
- 3 stars: 8%
- 2 stars: 1%
- 1 star: 0%

## 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](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [LLM Engineer's Handbook: Master the art of engineering large language models from concept to production](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Python Illustrated: Not another boring Python book, learn programming the fun way](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Ultimate Neural Network Programming with Python: Create Powerful Modern AI Systems by Harnessing Neural Networks with Python, Keras, and TensorFlow \(English Edition\)\)](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Build with Claude Code: From zero to deployed apps with AI-assisted development](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Building AI Agents for Finance: Build and deploy robust financial agentic systems with advanced reasoning, architectures, and Python](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [A Simple Guide to Python: Learn Python engineering the modern way – from first principles to hands-on coding exercises and AI-assisted development](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)

## Add-ons

- [Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)
- [Invent Your Own Computer Games with Python, 4th Edition](https://loonieperks.com/visit/learn-to-code-by-solving-problems-python-programming-primer)

## Images

![Learn to Code by Solving Problems: A Python Programming Primer — 1](https://loonieperks.com/i/aSsJdtdJ-vjeEVnS4KsjIVqWZ2B0Rv0S-PInJCqhElj5LTUufKKN_VyvVwrgCVnwP_GWW3HRYBa0cYFlmDLkpmxwXZpfVfY9JsNEqk66TqRzTJF8Qcu7.jpg)
