Fix typo: 4^9 not 9^4

`4^9 = 262,144`
This commit is contained in:
Aziz Alto 2020-05-16 01:44:51 -04:00 committed by GitHub
parent 501774ab53
commit f40353ad28
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:"
]
},
{