Skip to content
murmot

Results for “python while loop string methods examples list code site:mail.python.org”

  • mail.python.org

    [Tutor] For loop breaking string methods

    My intention now is to modify list contents in the following fashion: > > for index, value in enumerate(L): > L[0] = some_func(value). I think you meanIs this the standard method? Or use a List copmprehension.

  • mail.python.org

    [Tutor] For loop breaking string methods

    Is this the standard method? > > Or use a List copmprehension. > > L = [some_func(value) for value in L] > >.Thanks, I can see why the comprehensions are more popular. Colin. Previous message: [Tutor] For loop breaking string methods.

  • 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).More information about the Python-Dev mailing list.