this time I have only one textfile and I want to remove all duplicate lines so that each and every single line in it is unique unto itself.
with open("textfile") as w:
for line in w:
W = line
with open("textfile") as d:
c = 0
for line in d:
D = line
if W.strip() == D.strip(): c = c + 1
if c == >1:
#how can I delete D?
#and will after deleting it, does this mean that I can make sure that my W won't skip it?