Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 298 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 298 Bytes

Python Sets

A set contains an unordered collection of unique and immutable objects.

Set Operations

  • add(element)
  • clear
  • copy
  • difference
  • discard(element)
  • remove(element) - same functionality as discard, but raises a KeyError if element is not present.
  • union
  • intersection
  • pop