Your loop will keep looping until it either breaks (found it!) or the list is exhausted. You do not need to do anything special to "stop that current iteration, and try with the next letter in the list". We don't need a continue
when a letter doesn't match, this will happen automatically as long as there are more letters to check.
We only want to display "nope can't find it" after we've searched through the entire list, so we don't need to check until the end. This else
statement corresponds to the for
loop, instead of the if
in your previous code.
letter = "w" # search for this letter in the list bellow
listL = ["z","b","y","a","c"]
for let in listL:
if let == letter:
print "found it"
break #found letter stop search
else: #loop is done, didn't find matching letter in all of list
print "nope can't find it"