From dcb3fff1264da581eeb9489704483742734b654a Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Fri, 25 Sep 2009 23:51:33 -0400 Subject: [PATCH] tighten up wording "list" --> "set" --- advanced-iterators.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced-iterators.html b/advanced-iterators.html index 16bec1a..6d2d264 100755 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -146,7 +146,7 @@ if __name__ == '__main__':
  • So, given a list of strings, this line of code returns all the unique characters across all the strings, with no duplicates. -

    The alphametics solver uses this technique to get a list of all the unique characters in the puzzle. +

    The alphametics solver uses this technique to build a set of all the unique characters in the puzzle.

    unique_characters = set(''.join(words))