I have a list containing multiple lists as its elements
eg: [[1,2,3,4],[4,5,6,7]]
If I use the built in set function to remove duplicates f
Definitely not the ideal solution, but it's easier for me to understand if I convert the list into tuples and then sort it.
mylist = [[1,2,3,4],[4,5,6,7]] mylist2 = [] for thing in mylist: thing = tuple(thing) mylist2.append(thing) set(mylist2)