python are sets ordered code example Example: are sets ordered in python try: a = {'a', 'b'} print(a[0]) except: print("Set are not ordered")