Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discard python

fruits = {"apple", "banana", "cherry"}

fruits.discard("banana") # Discards "banana" key item from fruits dict
 
PREVIOUS NEXT
Tagged: #discard #python
ADD COMMENT
Topic
Name
3+7 =