I am currently working with a script that has lists that look like this:
example = [ ((2,1),(0,1)), ((0,1),(2,1)), ((2,1),(0,1)) ]
Now return this list to the set:
set( [ ((2,1),(0,1)), ((0,1),(2,1)) ] )
For my purposes, I need to recognize these tuples as equal. I don’t care about saving the order. All the decisions that I can think of are really messy, so if anyone has any ideas, I would be grateful.
source share