Skip to content
murmot

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

  • mail.python.org

    [Tutor] While loop exercise

    Next message: [Tutor] While loop exercise. Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]. Hi, I just finished the chapter which includes while loop, if-else-elif structure and randrange(). Can anyone suggest me 3 exercises to remind of the chapter?

  • mail.python.org

    [Python-Dev] PEP 315 - do while

    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) > > +. 1. This looks good.break. Would a 'while' outside of a 'do' block (but without the colon) then be a syntax error ?

  • mail.python.org

    [Tutor] How to make to exit the loop, while typing Enter

    While what you have written will work, its not usually a good idea to use a try/except block to control program flow like that. In pseudo code terms what you want is: while more marks. read and store marks process marks. So the processing should really be outside the loop.