[Tutor] While loop problem

Glen Wheeler gew75 at hotmail.com
Wed Jun 9 01:44:22 EDT 2004


  Hi Kevin,

  Something like

while response in 'yY':
    # do stuff

  ?

  Glen

----- Original Message ----- 
From: K J
To: tutor at python.org
Sent: Wednesday, June 09, 2004 3:07 PM
Subject: [Tutor] While loop problem


I can't seem to figure out how to make a while loop check for more then one
thing.

I want the while loop to check for both y and Y and return them true while
ever thing else is false.

Thanks

Kevin



_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list