Python Language Set: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
=Overview= | =Overview= | ||
=Shallow Copy= | |||
<syntaxhighlight lang='py'> | |||
s = set() | |||
s.add('a') | |||
s2 = s.copy() | |||
</syntaxhighlight> |