About the book
Assistants such as ChatGPT can write Python for you, but working out whether that code solves your problem, and fixing it when it does not, still takes the ability to break a problem down and reason your way to a solution. That ability is usually called computational thinking, and this book teaches it with Python.
It is written for people with no programming experience, including those who started learning before and stopped, and those who already have AI tools write code for them and want to understand what comes back.
- Status
- Not out yet.
- Chapters
- Fourteen, with a practical project in each.
- You need
- A computer with Windows, macOS or Linux, and Python 3.9 or newer, which the first chapter shows how to install.
- Author
- Igor Benav.
Contents
- Preface
It explains why solving problems matters more than knowing syntax once an AI assistant can write the code.
- 1 The Foundations of Computational Thinking
It builds the mental models for breaking a problem down, and the ideas from computer science behind them.
- 2 Getting Started with Python
It sets up Python and covers the basics, so that you can start writing a solution as code.
- 3 Representing and Manipulating Data
It covers Python’s data types and operations, and how to choose a representation that fits the problem.
- 4 Decision Making and Logical Reasoning
It covers conditionals and Boolean logic, and how to break a complicated decision into simple ones.
- 5 Repetition and Iteration
It covers for and while loops, and how to spot the patterns in a task that a loop can take over.
- 6 Abstraction and Modularity
It covers functions and scope, and how to split a large problem into parts that can be solved one at a time.
- 7 Organized Data: Sequences and Lists
It covers lists and tuples, and how to structure data for problems about collections of things.
- 8 Key-Value Relationships with Dictionaries
It covers dictionaries, and the lookup and relationship problems they make simple.
- 9 Set Theory in Computing
It covers Python’s sets and their operations, and the problems about unique items that they solve.
- 10 Handling Errors
It covers try and except and debugging, and how to write solutions that cope with the unexpected.
- 11 Modules and Packages
It covers the import system and the standard library, and how to build on solutions that already exist.
- 12 File Input and Output
It covers reading and writing files and context managers, and how to keep data between runs of a program.
- 13 Introduction to Object-Oriented Programming
It covers classes and inheritance, and how to model things from the real world as objects.
- 14 Putting It All Together
It brings everything in the book together to build one complete application.
When it is out
We will announce the book in our newsletter when it comes out, and subscribers also get each new article and each release of our products and libraries.