Skip to content
murmot

Results for “python while loop example pdf code site:mail.python.org download”

  • mail.python.org

    Pedagogical style [was Re: The "loop and a half"]

    Such code would never pass code review among even moderately experienced Python coders, let alone experts. By teaching this first, Stefan's students have to literally unlearn what he teaches them, in order to learn the right way of walking a string

  • mail.python.org

    [Python-Dev] PEP 315 - do while

    A basic do-while loop would look like this(That is, <setup code> is still repeated each time around the loop - it's called that because it is run before the loop evaluated condition is evaluated).

  • mail.python.org

    [Python-Dev] PEP 315 - do while

    The 'do' will execute at least once, so > the else clause is not needed, nor is the <loop completion code>. The <loop > body> should go before the while terminator. This objection is based on a misunderstanding of what the else clause is for in a Python loop.