input: Write a function that takes a list of numbers from 1 to 8 and prints their cubic values. The function should iterate through the list, compute the cube of each number, and print the result. If the input list is not exactly from 1 to 8, the function should raise a ValueError.
  assert print_cubic_values([1, 2, 3, 4, 5, 6, 7, 8])
  assert raises ValueError for any other list that is not exactly [1, 2, 3, 4, 5, 6, 7, 8]
output: def print_cubic_values(numbers):
      if numbers != list(range(1, 9)):
          raise ValueError
      for num in numbers:
          print(num ** 3)