Handling yes/no questions from the User

claes_lillieskold at hotmail.com claes_lillieskold at hotmail.com
Tue Mar 21 13:00:54 EST 2006


I'm writing a scipt that need to interact with the user.
Lets say I have the:

"Do you want to continue [Y|n]"

Where just pressing return means Yes (since its uppercase).

Its easy to write a function for this, but perhaps something like this
already exists. Could someone point me to a class that handles this
kind of user interaction?

BR / Claes




More information about the Python-list mailing list