slightly better intro for advanced-iterators chapter. still not happy with it

This commit is contained in:
Mark Pilgrim
2009-04-16 00:51:05 -04:00
parent 7cab4928ca
commit e412913bfa
+3 -4
View File
@@ -16,9 +16,7 @@ body{counter-reset:h1 6}
</blockquote>
<p id=toc>&nbsp;
<h2 id=divingin>Diving In</h2>
<p class=f>G<code>OYA + INGRES + RENOIR + SARGENT = ARTISTS</code>. Or, to put it another way, <code>8643 + 598712 + 719657 + 2378190 = 3705202</code>.
<p>It might make more sense if I line it up for you.
<p class=f>G<code>OYA + INGRES + RENOIR + SARGENT = ARTISTS</code>. Or, to put it another way, <code>8643 + 598712 + 719657 + 2378190 = 3705202</code>. Am I speaking in tongues? No, it's just a puzzle. Here, let me line it up for you.
<pre><code>GOYA + INGRES + RENOIR + SARGENT = ARTISTS
8643 + 598712 + 719657 + 2378190 = 3705202
@@ -355,7 +353,8 @@ for guess in itertools.permutations(digits, len(characters)):
<h2 id=string-translate>A New Kind Of String Manipulation</h2>
<p>Strings have a powerful
<p>FIXME
<pre class=screen>
<samp class=p>>>> </samp><kbd>characters = tuple(ord(c) for c in 'SMEDONRY')</kbd>
<samp class=p>>>> </samp><kbd>characters</kbd>