input: Write a function that takes a list of numbers from 1 to 8 and prints each number's cubic value. If the list is not from 1 to 8, it should print "Invalid list". Use a loop to calculate and print the cubic values one by one.
  
  def print_cubic_values(numbers):
      if sorted(numbers) == list(range(1, 9)):
          for num in numbers:
              print(num**3)
      else:
          print("Invalid list")
  
  assert print_cubic_values([1, 2, 3, 4, 5, 6, 7, 8])==None
  assert print_cubic_values([8, 1, 3, 2, 5, 4, 6, 7])==None
  assert print_cubic_values([1, 2, 3, 4, 5, 6, 7])=="Invalid list"
  assert print_cubic_values([1, 2, 3, 4, 5, 6, 7, 9])=="Invalid list"
output: def print_cubic_values(numbers):
      if sorted(numbers) == list(range(1, 9)):
          for num in numbers:
              print(num**3)
      else:
          print("Invalid list")