From e78e41ce3038b23288ced37e81c019074ad60db4 Mon Sep 17 00:00:00 2001 From: Alfonso Millan Date: Thu, 29 Jun 2017 01:36:01 -0700 Subject: Update python3.html.markdown (#2776) --- python3.html.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'python3.html.markdown') 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 & -- cgit v1.2.3