def check_if_input_valid(guess):
    """
    This method checks if the input from users are valid or not.
    :param guess: list
    :returns valid: bool - True if so and False otherwise
    """
    valid = True
    if len(guess) != 2:
        valid = False
    else:
        valid_guess = [str(i) for i in range(0, 10)]
        if guess[0].strip() not in valid_guess or guess[1].strip() not in valid_guess:
            valid = False
    return valid