def binary_handling(prompt=''):
    """ Handle yes/no questions
    Args:
        prompt (string): an user-defined prompt
    
    Returns:
        a (bool): a Boolean value
    """
    ans = input(prompt)
    yes_ls = ['yes', '1', 'on', 'y', 'in']
    no_ls = ['no', '0', 'off', 'n']

    while True:
        if ans.lower() in yes_ls:
            a = True
            return a
        elif ans.lower() in no_ls:
            a = False
            return a
        else:
            print('Not a valid answer. Enter either \'yes\' or 1 for YES, or \'no\' or 0 for NO!')
            ans = input(prompt)
            continue