Fix typo: 4^9 not 9^4
`4^9 = 262,144`
This commit is contained in:
parent
501774ab53
commit
f40353ad28
@ -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:"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user