Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python update function

set_elems = {'a', 'b', 'c'}
set_elems.update({'c', 'd'})
print(set_elems) # => {'c', 'd', 'a', 'b',}
# Adds any iterable object as list, tuple or dicts at begining of set.
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #python #update #function
ADD COMMENT
Topic
Name
5+2 =