def number_to_base(number:int, base:int) -> str:
    """Take a number (in base 10), and represent it in another base

    Parameters
    ----------
    number : int
        The number to convert to a specific base
    base : int
        The base to convert the number to

    Returns
    -------
    str
        The string representation of the value

    Examples
    --------
    Converting 75 between bases
    ```
    number_to_base(75, 2) # returns '1001011'
    number_to_base(75, 16) # returns '4b'
    ```

    Returning results to integer value
    ```
    number, base = 75, 16
    int(number_to_base(75, 16), 16) # Returns 75
    ```
    """
    if base == 16:
        return hex(number)[2::]
    if number == 0:
        return "0"
    digits = []
    while number:
        digits.append(str(number % base))
        number //= base
    if len(digits) == 1:
        return str(digits[0])
    else:
        return "".join(digits[::-1])