Home / Python Set / How to Get Number of Items in a Set in Python In this example we will show how to get the number of items in a set in Python. Source Code my_set = {'a', 'b', 1, 'c'} print(len(my_set)) Output: 4