len()
` function. Here is an example :my_set = {1, 2, 3, 4, 5}
print(len(my_set))
5
my_set
` with 5 elements. Then, we use the `len()
` function to get the length of the set and print it to the console. 5
`, which is the number of elements in the set.