s1 = {True, "Earth", "Sky", 25, -6.555, 9-5j, 25, "Sky", 25}
o/p = {(9-5j), -6.555, 25, 'Earth', 'Sky', True}
s2 = {"hi", -2+5j, 60, -6}
o/p = {(-2+5j), -6, 60, 'hi'}
can anyone help why they follow that type of order
s1 = {True, "Earth", "Sky", 25, -6.555, 9-5j, 25, "Sky", 25}
o/p = {(9-5j), -6.555, 25, 'Earth', 'Sky', True}
s2 = {"hi", -2+5j, 60, -6}
o/p = {(-2+5j), -6, 60, 'hi'}
can anyone help why they follow that type of order
Set are unordered as they stores values in hash table. The sequence of values solemnly depends on the execution machine. I had executed the code got different results from yours.
https://ide.geeksforgeeks.org/e8808c91-0a5b-4dff-9caf-1da0f8be2142
Happy coding :)