Update Countdown.ipynb

This commit is contained in:
Peter Norvig
2024-01-02 10:00:40 -08:00
committed by GitHub
parent 280cf9a8e4
commit 42f497d097

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",