Like many other questions on here, I'm attempting to remove duplicates from a list. However, when I execute code that other answers claim work I get the following error:
TypeError: unhashable type: 'list'
on the following line of code:
total_unique_words = list(set(total_words))
Does anyone know a possible solution to this problem? Is this because in most cases the original structure isn't a list?
Thanks!