Im trying to delete all words from a list that include duplicate letters (to start with 'd' and 'r' for testing) but cannot get it check all the letters i want it to.
a = ["word","worrd","worrrd","wordd"]
alpha = ['d','r']
i = 0
x = 0
while x in range(0, len(alpha)):
while i in range(0, len(a)):
if a[i].count(alpha[x]) > 1:
del(a[i])
i = i - 1
else:
i = i + 1
x = x + 1
print(a)