If one of my lists contains the same value as another list and I want to delete that. How do I do that? List q contains the value of list y. It is a list but read from a file with readlines()
. And when deleting I want to delete the whole line where x is in y.
if listx in listy:
listq.remove(listx)