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