mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
tighten up wording "list" --> "set"
This commit is contained in:
@@ -146,7 +146,7 @@ if __name__ == '__main__':
|
||||
<li>So, given a list of strings, this line of code returns all the unique characters across all the strings, with no duplicates.
|
||||
</ol>
|
||||
|
||||
<p>The alphametics solver uses this technique to get a list of all the unique characters in the puzzle.
|
||||
<p>The alphametics solver uses this technique to build a set of all the unique characters in the puzzle.
|
||||
|
||||
<pre class='nd pp'><code>unique_characters = set(''.join(words))</code></pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user