Answers for "size of set python"

0

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
Posted by: Guest on February-25-2022
0

size of set python

a = {1, 2, 3, 4, 5, 6}
len(a)
Posted by: Guest on March-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language