[Tutor] newbie 'while' question

Zak Arntson zak@harlekin-maus.com
Mon Jun 30 18:42:31 2003


> Which works great.  I'm still stuck on how to do Zak's method of
> manipulating the string, but starting to feel better about 'while' now.
>
> Thanks,
> Matt

Here's some code, missing stuff:

s = raw_input('>')
while s:    # when will the while loop be done?
    print s[??]   # ?? is some value
    s = ?? # you want to change s

---
Zak Arntson
www.harlekin-maus.com - Games - Lots of 'em