Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python size of set

n = len({1, 2, 3})
# n = 3
or 
myset = set()
myset.add(1) 
myset.add(2) 
myset.add(3) 
len(set1)
# len(set1) = 3
 
PREVIOUS NEXT
Tagged: #python #size #set
ADD COMMENT
Topic
Name
4+5 =