a = [1, 2], [2, 1], [3, 2, 2], [2], [2, 1, 3], [2, 2, 3]a = [sorted(i) for i in a] print [list(i) for i in set(map(tuple, a))]
Standard input is empty
[[1, 2], [2], [2, 2, 3], [1, 2, 3]]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!