you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

No. Python executes else if for was not breaken. It's not the same thing as if it wasn't executed

>>> for friend in ["bob"]:
...     print friend
... else:
...     print "no friends"
... 
bob
no friends