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?\')
This question is quite old, but I'm researching it today. The library pyinputplus is recommended by Al Swigert in Automate the Boring Stuff With Python