Update python3.html.markdown (#2776)

This commit is contained in:
Alfonso Millan 2017-06-29 01:36:01 -07:00 committed by ven
parent ec10b15702
commit e78e41ce30

View File

@ -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 &