Learn Before
Concept

pop()

pop() removes an arbitrary element from the set and returns that element.

If the set is empty, it will raise a TypeError exception.

Usage Example:

Image 0

0

1

Updated 2021-05-28

Tags

Python Programming Language

Data Science

Related