Update Countdown.ipynb

This commit is contained in:
Peter Norvig authored and GitHub committed 2024-01-02 10:00:40 -08:00
1 parent 280cf9a8e4
commit 42f497d097
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@
"\n",
"- *Given any sequence of numbers, place operations and brackets to form a dict of `{value: expression}` for every value that can be made.*\n",
"\n",
"I'll define `expressions(numbers)` to return an **expression table**: a dict of `{value: expression}` for all expressions (strings) whose numeric value is a `value` that can be made using all the `numbers`, for example:\n",
"I'll define `expressions(numbers)` to return an **expression table**: a dict of `{value: expression}` for all expressions (strings) whose numeric value is a `value` that can be made using all the `numbers` in left-to-right order. For example:\n",
"\n",
" expressions((3, 2)) = {1: '(3-2)', 1.5: '(3/2)', 5: '(3+2)', 6: '(3*2)'}\n",
"\n",