Python Program to Find Set Length

Write a Python Program to Find the length of a set. In this example, we declared different types of sets and used the len function to find those sets’ lengths. intSet = {10, 25, 136, 44, 150} print(“Items = “, intSet) intSetLength = len(intSet) print(“Set Length = “, intSetLength) strSet = {‘apple’, ‘banana’, ‘Mango’, ‘kiwi’} … Read more