Take for example the code below with 2 for loops.
for xy in set:
for name in dict:
if xy == name:
print("Yay")
What I'm wondering is, if after the if statement is found to be true, will it keep iterating through 'dict' or will it go back upto the first for loop and move onto the next iteration? I can't believe how long I've been using python and I don't know the answer to such a simple question.
Thanks!
dict, why not just testif xy in dict:?