dksr <dksre...@gmail.com> wrote: > Yes thats what I thought. for-else looks similar to if-else and in if- > else, else part is executed only when if part is not executed, but in > for-else it has entirely a different job.
If you think of if-else more in terms of the else-branch occurring when the if-condition is no longer true (as opposed to 'not executing'), they're a lot more similar in approach than different. -- http://mail.python.org/mailman/listinfo/python-list