[Tutor] Else vs. Continue

Joel Goldstick joel.goldstick at gmail.com
Sun Nov 24 23:02:59 CET 2013


On Sun, Nov 24, 2013 at 4:41 PM, Dominik George <nik at naturalnet.de> wrote:
> Hi,
>
>> I stumbled upon the "continue" statement and to me it looks like it
>> does exactly the same as else. I tested both else and continue in a
>> little program and I don't see any differences between both. Is my
>> assumption correct or wrong? If the latter is the case: Can you give
>> me examples of continue usage that couldn't be done with else?


I applaud your industrious exploration lately.  Don't forget the
Python website.  I googled 'python continue' and got this:


http://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops


Google is your friend!

https://mail.python.org/mailman/listinfo/tutor
>



-- 
Joel Goldstick
http://joelgoldstick.com


More information about the Tutor mailing list