Run »
mylist = ['apple', 'banana', 'cherry'] x = frozenset(mylist) print(x)