mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
slightly better intro for advanced-iterators chapter. still not happy with it
This commit is contained in:
@@ -16,9 +16,7 @@ body{counter-reset:h1 6}
|
||||
</blockquote>
|
||||
<p id=toc>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user