demo_set.py:
thisset = {"apple", "banana", "cherry"} print(thisset) # Note: the set list is unordered, meaning: the items will appear in a random order. # Refresh this page to see the change in the result.
➜ begtut>python demo_set.py
{'banana', 'cherry', 'apple'}