def get_list_of_digits(number: int) -> list:
    """returns list of digits of inputted number"""
    result = []
    while number != 0:
        last_digit = number % 10
        number //= 10
        result.append(last_digit)
    return result[::-1]