diff options
-rw-r--r-- | python3.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index f25d9228..5aa61b65 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -345,6 +345,7 @@ invalid_set = {[1], 1} # => Raises a TypeError: unhashable type: 'list' valid_set = {(1,), 1} # Add one more item to the set +filled_set = some_set filled_set.add(5) # filled_set is now {1, 2, 3, 4, 5} # Do set intersection with & |