Hi,
First of all, please understand that I wrote it using a translator.
I’m using Python version 3.8.8
setTest1 = {'a','b','c',4}
setTest2 = {'1','2','3','4'}
setTest3 = {1,2,3,4}
setTest4 = set(['1',2,3,4])
print(setTest1) # unordered
print(setTest2) # unordered
print(setTest3) # ordered
print(setTest4) # unordered
Why is it sorted only when there is an integr value?
Please guide me and let me know if I am missing anything. Thanks in advance and I look forward to hearing from you.
Best Regards,
Jacob