union(), Everything in both sets., name = set_a | set_b, |, intersection(), Only items found in both sets., name = set1 & set2, &, difference(), Items in the first set that are NOT in the second., name = set_a - set_b, -, symmetric_difference(), Items in either set, but NOT both., name = set_a ^ set_b, ^

set methods python

Leaderboard

We are currently working on improving the Leaderboard functionality. Please help us by offering your feedback.

Give Feedback

Visual style

Options

We are currently working on improving the Activity Settings. Please help us by offering your feedback.

Give Feedback

Switch template

Continue editing: ?