I have the result as follows:
[(196, 128), (196, 128), (196, 128), (128, 196), (196, 128), (128, 196), (128, 196), (196, 128), (128, 196), (128, 196)]
And I would like to convert it to unique values ββlike this in sorted order:
[128, 196]
And I'm pretty sure that there is something like a one-line trick in Python (including batteries), but I can't find it.
source share