So I was converting a list with repetitive elements into a set to have each element appear once. I know that sets are unordered so they will display the elements in the order given. I ran the below script and I noticed a strange output.
mylist = [1,2,2,33,4,4,11,22,3,3,2]
print(set(mylist))
The output would be:
{1, 2, 33, 4, 3, 11, 22}
The 3 in the original list appears after the 11 and 22, so why does it appear before them in the set?