def up_down_checker(string: str) -> bool:
    """Function to check if user wants to go up or down by asking
    for their in put, up = True, down = False"""

    up_list = ['up', 'u', '1']
    down_list = ['down', 'd', '0']

    while True:
        try:

            answer = input(string)

            if answer.lower() not in up_list and answer.lower() \
                    not in down_list:
                print('Please enter up or down')
                continue
            elif answer.lower() in up_list:
                return True
            else:
                return False

        except Exception as e:
            print(e)