# checks that users enter a valid response (eg yes / no # cash / credit) based on a list of options def string_checker(question, num_letters, valid_responses): pass # main routine goes here yes_no_list = ["yes", "no"] payment_list = ["cash", "credit"]