I have a tuple of repeating numbers and would like to keep only the unique items but not change the order. This works:
values = (30.0,30.0,30.0,15.0,30.0])
print set(values)
which returns:
set([30.0, 15.0])
But when I try:
values = (2, 1, 2, 1)
It returns:
set([1, 2])
My question is why is it not keeping the order in the second example.