No. 392 of 500 No. 44 in Generative AI & LLMs

Learn AI-Assisted Python Programming

With GitHub Copilot and ChatGPT

By Leo Porter and Daniel Zingaro

Published
October 29, 2024
Print length
336 pages
Reading level
Beginner
ISBN-13
978-1633435995
Publisher
Manning Publications
Written for
Complete beginners and career changers who want to learn Python alongside an AI coding assistant.

Synopsis

Leo Porter and Daniel Zingaro, two university teachers of introductory computer science, start from a simple observation: once GitHub Copilot or ChatGPT can produce working Python from a plain-English request, a beginner's job shifts from typing syntax to describing problems precisely and judging whether the generated code is correct. The book therefore reverses the usual order of a first programming course. Readers set up Python, VS Code and Copilot, write function descriptions that the assistant turns into code, and only then learn enough about variables, loops, conditionals, strings, lists and dictionaries to read and evaluate the result. Later chapters cover testing, breaking a large problem into smaller functions, and debugging when the assistant's suggestions fail.

Worked projects include data analysis, a multi-function program that estimates the likely author of a mystery text, scripts that automate tedious computer chores, and small games. The first edition appeared in 2023; the 2024 second edition updates the tools and adds material on splitting larger software projects into tasks an assistant can manage. A reader finishes able to build modest, useful programs and, more importantly, with habits of specification, verification and decomposition that transfer to any AI coding tool. Experienced developers will find the pace slow, but newcomers get a structured route into programming that never assumes the AI is right.

Scorecard

Editorial score

How it scored

Editorial score: 70.1 / 1005 weighted criteria

  • Influence30%

    18.0/30
  • Authority25%

    18.8/25
  • Practical value20%

    15.0/20
  • Currency15%

    9.8/15
  • Readability10%

    8.5/10
  • Editorial score

    70.1/100

How the rank was computed

Rank No. 392 of 500 comes from a composite of 50.1: observable signals 18.6 of 55 points plus editorial review 31.5 of 45 points.

All 11 inputs
InputPoints
Observable signals18.6/55
Reach (Amazon ratings volume)6.3/16.5
Consensus across best-of lists5.5/13.8
Awards and bestseller evidence0.0/8.3
Reader rating, sample-adjusted4.5/8.3
Amazon sales rank0.6/5.5
Recency1.7/2.8
Editorial review31.5/45
Author authority8.4/11.3
Influence8.1/13.5
Practical value6.8/9.0
Readability3.8/4.5
Currency4.4/6.8

Each criterion is scored from 1 to 10 and weighted, and the points add up to the editorial score. The rank combines observable signals (55 percent) with this score (45 percent). Read the methodology.

Verdict

A thoughtful beginner's course that teaches Python by pairing an AI assistant with the reading, testing and design skills it cannot supply.

Strengths

  • Written by award-winning computing educators
  • Teaches testing and decomposition alongside prompting
  • Gentle pace suited to complete beginners

Keep in mind

Its walkthroughs depend on specific Copilot interfaces and model behavior that change quickly, so some screenshots and outputs will not match current tools.

Key takeaways

  1. A clear function name, parameter list and docstring is the most effective prompt, because it tells the assistant exactly what code to produce.
  2. Beginners still need to read Python fluently, since AI-generated code is often plausible but wrong in ways only a careful reader can catch.
  3. Testing each function against chosen inputs, including edge cases, is the main defense against confident but faulty assistant output.
  4. Top-down decomposition, splitting a large problem into small, well-described functions, is what lets an AI assistant contribute to bigger programs.

Notable facts

About the author

Leo Porter and Daniel Zingaro

Leo Porter is a Teaching Professor of computer science at UC San Diego, known for promoting Peer Instruction, and received the UC San Diego Academic Senate's Distinguished Teaching Award in 2022. Co-author Daniel Zingaro is an Associate Teaching Professor at the University of Toronto and the author of the No Starch Press books Algorithmic Thinking and Learn to Code by Solving Problems.

Questions

Is Learn AI-Assisted Python Programming worth reading in 2026?
Yes, for beginners. The specific Copilot screens have changed, but the book's core lessons apply to every current AI coding assistant: describe functions precisely, read the generated code, test it and break large problems into smaller ones. Readers should choose the 2024 second edition and expect to adapt some setup steps to newer versions of VS Code and Copilot.
Do I need programming experience to read Learn AI-Assisted Python Programming?
No. The book assumes no prior coding and walks readers through installing Python, VS Code and GitHub Copilot before introducing variables, loops, functions and data structures. Because it teaches reading and testing code rather than memorizing syntax, it suits career changers and professionals who want to automate tasks. Developers who already know Python will find most chapters too elementary.
What is Learn AI-Assisted Python Programming about?
It teaches introductory Python through GitHub Copilot and ChatGPT. Readers describe what a function should do, let the assistant draft the code, then learn to read, test and debug the result. Projects range from data analysis and an author-identification program to task automation and simple games, building the judgment needed to use AI coding tools responsibly.

Sources

As an Amazon Associate, Best AI Books earns from qualifying purchases. Best AI Books is sponsored by Iternal.ai, whose founder and CEO, John Byron Hanby IV, wrote The AI Strategy Blueprint, our #1 ranked book. How we rank books.