demo_ref_frozenset.py:
mylist = ['apple', 'banana', 'cherry'] x = frozenset(mylist) print(x)
C:\Users\My Name>python demo_frozenset.py
fozenset({'apple', 'banana', 'cherry'})