programming-examples/python/Sets/Python program to find the length of a set.py
2019-11-15 12:59:38 +01:00

4 lines
102 B
Python

#Create a set
seta = set([5, 10, 3, 15, 2, 20])
#Find the length use len()
print(len(seta))