Is Set Deterministic?
When reading such questions as Get unique values from a list in python you can see the remarks the order can be not preserved. This is understandable. What is bugging me that it go
Solution 1:
I don't see this problem so far:
>>> values_list = range(100) * 3
>>> a = list(set(values_list))
>>> b = list(set(values_list))
>>> a == b
True
>>>
Post a Comment for "Is Set Deterministic?"