def verify_input(log):
    """
    Loop to verify yes or no input.
    Function takes a string which is printed out so the user knows what they are agreeing to
    """
    while True:
        result = input(log)
        if result.lower() == 'y':
            return True
        if result.lower() == 'n':
            return False
        else:
            print("Please enter a valid response")