def input_yn(prompt, require=False):
 sel = input_options(('y', 'n'), require, prompt, 'Enter Y or N:')
 return (sel == 'y')

def input_yn ( prompt , require = False ) : sel = input_options ( ( 'y' , 'n' ) , require , prompt , 'Enter Y or N:' ) return ( sel == 'y' )
prompts the user for a "yes" or "no" response .