From e412913bfa7a38b44603d8dc0760f26c5cb499b6 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Apr 2009 00:51:05 -0400 Subject: [PATCH] slightly better intro for advanced-iterators chapter. still not happy with it --- advanced-iterators.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/advanced-iterators.html b/advanced-iterators.html index 8a13bc9..0bdf81d 100644 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -16,9 +16,7 @@ body{counter-reset:h1 6}

 

Diving In

-

GOYA + INGRES + RENOIR + SARGENT = ARTISTS. Or, to put it another way, 8643 + 598712 + 719657 + 2378190 = 3705202. - -

It might make more sense if I line it up for you. +

GOYA + INGRES + RENOIR + SARGENT = ARTISTS. Or, to put it another way, 8643 + 598712 + 719657 + 2378190 = 3705202. Am I speaking in tongues? No, it's just a puzzle. Here, let me line it up for you.

GOYA + INGRES + RENOIR + SARGENT = ARTISTS
 8643 + 598712 + 719657 + 2378190 = 3705202
@@ -355,7 +353,8 @@ for guess in itertools.permutations(digits, len(characters)):
 
 

A New Kind Of String Manipulation

-

Strings have a powerful +

FIXME +

 >>> characters = tuple(ord(c) for c in 'SMEDONRY')
 >>> characters