Merge pull request #86 from iamaziz/patch-1

Fix typo: 4^9 not 9^4
This commit is contained in:
Peter Norvig 2020-06-23 12:33:19 -07:00 committed by GitHub
commit 1d1708769d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@
"\n",
"We'll start with a simpler version of the puzzle: a countdown with no brackets. \n",
"\n",
"There are nine blanks, each of which can be filled by one of four operators, so there are 9<sup>4</sup> = 262,144 possibilities, few enough that we can enumerate them all, using `itertools.product` to get tuples of operators, and then `str.format` to plug them into blanks, and then `eval` to evaluate the string:"
"There are nine blanks, each of which can be filled by one of four operators, so there are 4<sup>9</sup> = 262,144 possibilities, few enough that we can enumerate them all, using `itertools.product` to get tuples of operators, and then `str.format` to plug them into blanks, and then `eval` to evaluate the string:"
]
},
{