a = {1, 2, 3, 4, 5}
a.add(23)
a
{1, 2, 3, 4, 5, 23}
a.add(224)
a
{224, 1, 2, 3, 4, 5, 23}
a.add(300)
a
{224, 1, 2, 3, 4, 5, 23, 300}
How does python order elements in a set? 224 is placed in the first place when I add it to the set but 23 and 300 was place in the end of the set.