s = set() for i in range arr = [i for i in s] print(type(arr)) arr.sort(reverse=True) print(arr)