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