Run
# Take a list of elements list1 = ['apple', 'banana', 'cherry'] # Unpack list items and form set output = {*list1} print(f'Set : {output}') print(type(output))
Output