input: Write a function to compute the cubic values of a list of numbers ranging from 1 to 8 and print each cubic value. If the list is not exactly from 1 to 8, raise a ValueError.
  
  def compute_cubics(numbers):
      if numbers != list(range(1, 9)):
          raise ValueError("Input list must consist of numbers from 1 to 8.")
      for num in numbers:
          print(num**3)
  
  assert compute_cubics([1, 2, 3, 4, 5, 6, 7, 8])==None
  try:
      compute_cubics([2, 3, 4, 5, 6, 7, 8, 9])
  except ValueError:
      pass
  else:
      raise AssertionError("Expected ValueError for incorrect input.")
  
output: def compute_cubics(numbers):
      if numbers != list(range(1, 9)):
          raise ValueError("Input list must consist of numbers from 1 to 8.")
      for num in numbers:
          print(num**3)