13,420
edits
Changes
→PART 2 - Sets
s2.union(s3) # same as s2 | s3
</source>Notice that both methods above provides the same result, but the first method requires less keystrokes.<br><br>
:#Instead of combining sets, we can find out what display '''values that are in common to both sets'''. This is a known in mathematical terms as an '''intersection ''' between the lists.<source>
s2
s3