input: Write a function to compute the cube of each number in the given list and print the result. The list contains numbers from 1 to 8. If the input list is not in this range, return an error message.
  assert cube_numbers([1, 2, 3, 4, 5, 6, 7, 8])==None
  assert cube_numbers([2, 3, 5, 8, 6, 1, 7, 4])==None
  assert cube_numbers([1, 2, 3, 9])=='Error: Input list does not contain numbers from 1 to 8'
  assert cube_numbers([1, 15, 3])=='Error: Input list does not contain numbers from 1 to 8'
output: def cube_numbers(numbers):
      if sorted(numbers) != list(range(1, 9)):
          return 'Error: Input list does not contain numbers from 1 to 8'
      for num in numbers:
          print(num ** 3)