length of sets in python code example Example: length of set python setnum = {1,2,3,4,5} # Find the length use len() print(len(setnum)) #5