diff options
author | root <root@learnxinyminutes.com> | 2018-08-25 02:38:11 +0000 |
---|---|---|
committer | root <root@learnxinyminutes.com> | 2018-08-25 02:38:11 +0000 |
commit | afd18bd4ed4a898e493e99459cc72aaf97163272 (patch) | |
tree | 4770ac0eafe30e8b4e81c573a13b519ec37dfda6 /python3.html.markdown | |
parent | 6f2003a31f900c1ce3ff1dde64b17c7ac02350cc (diff) | |
parent | 5359298b0d5bd3f18cdd8521abf41e8048cac5f6 (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'python3.html.markdown')
-rw-r--r-- | python3.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index d6cfbf59..b378a8c6 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -7,6 +7,7 @@ contributors: - ["Zachary Ferguson", "http://github.com/zfergus2"] - ["evuez", "http://github.com/evuez"] - ["Rommel Martinez", "https://ebzzry.io"] + - ["Roberto Fernandez Diaz", "https://github.com/robertofd1995"] filename: learnpython3.py --- @@ -352,6 +353,8 @@ 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} +# Sets do not have duplicate elements +filled_set.add(5) # it remains as before {1, 2, 3, 4, 5} # Do set intersection with & other_set = {3, 4, 5, 6} |