diff options
author | Octavian Mocanu <octavian.mocanu@letgo.com> | 2019-12-07 13:51:46 +0100 |
---|---|---|
committer | Octavian Mocanu <octavian.mocanu@letgo.com> | 2019-12-07 13:51:46 +0100 |
commit | fe84024d169dffc793fcf2e6eb82b8cd4ea97f8d (patch) | |
tree | 105391294fcc7f4bbf98d28cd18715e57034f039 /python3.html.markdown | |
parent | 7b8042992513386cc77008cb38bc5682243e4759 (diff) |
copy sets
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 d09c2819..45ee5c85 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -394,6 +394,9 @@ filled_set | other_set # => {1, 2, 3, 4, 5, 6} 2 in filled_set # => True 10 in filled_set # => False +# Make a one layer deep copy +filled_set = some_set.copy() # filled_set is {1, 2, 3, 4, 5} +filled_set is some_set # => False #################################################### |