I have a file containing 10,000 words which I import as strings and store in a list. Now, I have another list of strings and have to delete the common words in both lists. When I try to run the program, it takes a lot of time. Please let me know if there's any other way to do it.
For now, I am using:
For item in list_1:
If item in list_2:
{Do the deletion}