At 11:40 PM 2/15/2005, Alan Gauld wrote:
 Is there a better way for raw_input to accept both caps and lower
case letters than:

 def aFunction():
    action = raw_input("Perform an action?(y,n): ")

action = raw_input("Perform an action?(y,n): ").upper()

if action == 'y' or action == 'Y':

if action == 'Y':

anotherFunction()

etc.


Bob Gailer
mailto:[EMAIL PROTECTED]
303 442 2625 home
720 938 2625 cell


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

Reply via email to