def get_digit(number, index):
    """
    Retrieves the digit in the given index.
    The index values start with the least
    significant value.

    :type number: int
    :param number: The base number to retrieve
    the digit.
    :type index: int
    :param index: The index to retrieve the digit.
    :rtype: int
    :return: The digit in the given index.
    """
    return number // 10 ** index % 10
