Hi all, thanks to all for running such a great list.
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): ")
if action == 'y' or action == 'Y':
anotherFunction()
elif action == 'n' or action == 'N':
yetAnotherFunction()
else:
aFunction()
Thanks!
--
No success or discovery is an accident. It is the result of time
invested in the process.
--
No success or discovery is an accident. It is the result of time
invested in the process.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor