input: Write a function to accept a list of numbers from 1 to 8 and print the cubic values of each number. If the input list contains numbers outside the range of 1 to 8, the function should raise a ValueError.
  assert print_cubic_values([1, 2, 3, 4, 5, 6, 7, 8])==None
  assert print_cubic_values([])==None
output: def print_cubic_values(numbers):
      for num in numbers:
          if num < 1 or num > 8:
              raise ValueError("Number out of range")
          print(num ** 3)