When I have a set of numbers, I want to convert the set to a list or array, no matter what I use, the order of the number changes
x = {4, 7, 10, 11, 12, 17}
y = list(x)
y
and y becomes [17, 4, 7, 10, 11, 12]
When I have a set of numbers, I want to convert the set to a list or array, no matter what I use, the order of the number changes
x = {4, 7, 10, 11, 12, 17}
y = list(x)
y
and y becomes [17, 4, 7, 10, 11, 12]