L=set() L.add("A") L.add("C") L.add("B") L Out[6]: {'A', 'B', 'C'} print(L) {'B', 'C', 'A'} EDIT : I'm using PyCharm and Python 3.10.2 Continue reading...