Learn Before
Concept

Set

  • A set is an unordered collection of data.
  • The items in a set are unordered, unmutable, and cannot contain duplicate values.
  • Mathematical operations (e.g. union, intersection, difference, symmetric difference) can be performed on sets.
  • To create a set, list elements separated by commas within two curly braces.

Example:

set = {"apple", "orange", "banana"}

0

2

Updated 2021-05-17

Tags

Python Programming Language

Data Science

Related
Learn After