Sets are called unordered collection of elements or items right? Then why it is ordered when I run integers in a set. When I run any strings, they will be ordered alphabetically. I do not understand this. Please explain
Ex 1: When we run
a = {"tammy", "rick", "morty"}
it gives
{'morty', 'rick', 'tammy'}
which is in alphabetical order!
Ex 2: When we run
b = {23,56,43,76,856}
It gives
{23, 43, 56, 76, 856}
which is in ascending order!