I'm not sure about what the message in that print() refers to (else fires if the import succeeded) so here's another example
$ python3
>>> try:
1/0
except ZeroDivisionError:
print("exception")
else:
print("surprise")
exception
>>> try:
1/1
except ZeroDivisionError:
print("exception")
else:
print("normal")
1.0
normal
The choice of the name else is unfortunate because it's activated under the same circumstances of a then branch of an "if". Maybe its name should really be "then". That would also look like a .then of a JavaScript Promise, which would make sense nowadays and was obviously impossible to foresee back in 1991. However the name "else" makes sense if it refers to "except": it's what happens when no "except" fire. I still don't understand why it should be "else" for a "for" that succeeded: it should be a "then" there.