ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-Tutor
python-Tutor
Re: [Tutor] newbie 'while' question
by Danny Yoo other posts by this author
Jun 30 2003 6:11PM messages near this date
[Tutor] newbie 'while' question | Re: [Tutor] newbie 'while' question
On Mon, 30 Jun 2003, Matthew Richardson wrote:

>  s = raw_input('Enter a name: ')
>  for x in s:
>      print x
> 
>  Trying to do it with 'while', I've only managed to get it to print
>  through to the last character, where it loops and continues to print the
>  last character until escaped.  Someone willing to point me in the right
>  direction?



Hi Matt,


Sure, but you need to show us your while loop first.


It sounds like you've almost got it right, so I suspect it has to do
something with the while loop condition always being being a true value.
But we really do need to see the code so that we don't have to read your
mind.  *grin*



Good luck to you!


_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Matthew Richardson
Danny Yoo
Matthew Richardson
Kalle Svensson
Eric L Howard
Danny Yoo
Matthew Richardson
Matthew Richardson
Matthew Richardson
Danny Yoo
Matthew Richardson
Danny Yoo
Zak Arntson
Zak Arntson
Zak Arntson

Zak Arntson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved