When I type s1 = {4,3,8,1,8,2}
and check the values it always prints in ordered way as {1, 2, 3, 4, 8}. So is this is not ordered?
As per the duplicate question, even if I run there sample,
list1 = [8,16,24]
set(list1) #prints {8, 16, 24}
list2 = [24,16,8]
set(list2) #prints {8, 16, 24}
As per the duplicate question, they get different output. But for me as you can see every time it orders. I'm using Python 3.6.5. Is this how its suppose to behave?