input: Write a function to print the cubic values of a list of numbers from 1 to 8. If the list is not exactly from 1 to 8, the function should print "Invalid list".
  
  def print_cubics(list_numbers):
      if list_numbers == [1, 2, 3, 4, 5, 6, 7, 8]:
          for num in list_numbers:
              print(num**3)
      else:
          print("Invalid list")
  
  # Test cases
  print_cubics([1, 2, 3, 4, 5, 6, 7, 8])
  print_cubics([1, 2, 3, 4, 5, 6, 7, 8, 9])
  print_cubics([1, 2, 3, 4, 5, 6, 7])
  print_cubics([])
output: def print_cubics(list_numbers):
      if list_numbers == [1, 2, 3, 4, 5, 6, 7, 8]:
          for num in list_numbers:
              print(num**3)
      else:
          print("Invalid list")