Home>
Contents

The following code will return the result {1, 4, 7,'fuga','hoge','bar'}.
I understand that the numbers are in ascending order, number → string order, but I don't understand why the strings are in the order of hoge, fuga, bar.
Is there any law?

Corresponding source code
a = {1, "hoge", 4, "fuga", "bar", 7}
print (a)