Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set replace python

# Replace 1 with 4
s = {1, 2, 3}
s.remove(1)
s.add(4)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #replace #python
ADD COMMENT
Topic
Name
3+3 =