From b103599c44b4df38a97af34b5152bbc65ad47bb2 Mon Sep 17 00:00:00 2001 From: Peter Norvig Date: Mon, 8 Dec 2025 12:53:52 -0800 Subject: [PATCH] Update How To Count Things.ipynb --- ipynb/How To Count Things.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipynb/How To Count Things.ipynb b/ipynb/How To Count Things.ipynb index d2fe304..ad91c5a 100644 --- a/ipynb/How To Count Things.ipynb +++ b/ipynb/How To Count Things.ipynb @@ -81,7 +81,7 @@ "\n", "![barcode](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/EAN-13-5901234123457.svg/250px-EAN-13-5901234123457.svg.png)\n", "\n", - "We'll represent a unit as a character, `'B'` or `'W'`, and a barcode as a string of *n* units. The barcode above would start with `'BWWBW...'`. A valid string is one without 4 of the same character/unit in a row; `valid_barcode` tests for this.\n", + "We'll represent a unit as a character, `'B'` or `'W'`, and a barcode as a string of *n* units. The barcode above would start with `'BWBWW...'`. A valid string is one without 4 of the same character/unit in a row; `valid_barcode` tests for this.\n", "\n", "We'll start with the **enumerate and test** strategy: generate `all_strings` of *n* units and count how many are valid with `enumerate_barcodes`:" ]