def get_adjacent_digits(n, tuple_length):
  """
  Returns a list of numbers where each numbre is the tuple_length
  group of adjacent digits

  Ex: get_adjacent_digits(2345, 2) => [23, 34, 45] 
  Ex: get_adjacent_digits(2345, 1) => [1, 2, 3, 4]
  """
  result = []
  limit = (10 ** (tuple_length - 1)) - 1
  divisor = int(10 ** tuple_length)
  while n > limit:
    remainder = n % divisor
    result.insert(0, remainder)
    n //= 10
  return result