Fixed typo in "example"
This commit is contained in:
@@ -1100,7 +1100,7 @@
|
||||
"source": [
|
||||
"Now, what do we have to do for `all_dice(N)`? When we knew we had six sides, we wrote six nested loops. We can't do that for *N*, so what do we do?\n",
|
||||
"\n",
|
||||
"**Here's an iterative approach: we keep track of a list of partially-formed dice, and on each iteration, we add a side to all the partially-formed dice in all possible ways, until the dice all have `N` sides. So for eaxmple, we'd start with:**\n",
|
||||
"**Here's an iterative approach: we keep track of a list of partially-formed dice, and on each iteration, we add a side to all the partially-formed dice in all possible ways, until the dice all have `N` sides. So for example, we'd start with:**\n",
|
||||
"\n",
|
||||
" dice = [(1,)]\n",
|
||||
" \n",
|
||||
|
||||
Reference in New Issue
Block a user