Learn Before
Concept icon
Concept

discard(x)

The discard() method removes the specified element from the set.

Example usage:

Image 0

0

1

Concept icon
Updated 2021-05-25

Tags

Python Programming Language

Data Science

Related