I am implementing a small command line tool in python that needs to ask the user a couple of questions. I use
raw_input(\'Are you male or female?\') <
raw_input(\'Are you male or female?\')
Necromanting again...
Please have a look at click if you need a simple helper library for questions. Its main focus are command line options, but it’s a good fit for your use case, I think.