Apr-01-2021, 03:27 PM
If I use a set:
print(list(set(result)))
I get [4, 5, 55]
I don't understand why Python re-arrange the list when I create a set...
The result should be [5, 4, 55] because the order matters
print(list(set(result)))
I get [4, 5, 55]
I don't understand why Python re-arrange the list when I create a set...
The result should be [5, 4, 55] because the order matters