input: Write a function that takes a list of numbers from 1 to 8 and prints its cubic values. The function should iterate through the list and print the cube of each number. If the input list is not exactly from 1 to 8, the function should print "Invalid input".
  assert calculate_cubes([1, 2, 3, 4, 5, 6, 7, 8])==None
  assert calculate_cubes([1, 2, 3, 4, 5])=="Invalid input"
  assert calculate_cubes([1, 2, 3, 4, 5, 6, 7, 8, 9])=="Invalid input"
  assert calculate_cubes([8, 7, 6, 5, 4, 3, 2, 1])=="Invalid input"
  assert calculate_cubes([])=="Invalid input"
output: def calculate_cubes(numbers):
      if numbers != list(range(1, 9)):
          print("Invalid input")
      else:
          for num in numbers:
              print(num ** 3)