Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Difference between the remove() method and discard() method of sets in python

The difference between the remove() and discard() functions is that the
remove() function will raise an error if the given value to remove does
not exist within the set, whereas the discard() function will not raise an error.
Source by liu-111.medium.com #
 
PREVIOUS NEXT
Tagged: #Difference #method #method #sets #python
ADD COMMENT
Topic
Name
3+4 =