while True:
for skipLink in skipList:
if tgLink[i] == skipLink:
continue
for skipLink in skipList:
if tgLink[i] == skipLink:
if tgLink[i] in skipList:
if tgLink[i] not in skipList:
tgLink = [2, 5, 6]
skipList= [2]
for i in range(len(tgLink)):
if tgLink[i] not in skipList:
print(tgLink[i])
5
6
skipList = [1, 2, 3, 4]
tgLink = [1, 2, 3, 4]
i = 3
def check_continue(tgLink, i, skipList):
for skipLink in skipList:
if tgLink[i] == skipLink:
return True
while True:
if check_continue(tgLink, i, skipList):
continue