input: Write a function to compute the cube of each number in a given list of numbers from 1 to 8 and print the results. If the list contains numbers outside of this range, ignore those numbers. The function should take a list of integers as input and print the cube of each integer within the range.
  assert compute_cubes([1, 2, 3, 4, 5, 6, 7, 8])
  # Should print:
  # 1
  # 8
  # 27
  # 64
  # 125
  # 216
  # 343
  # 512
  assert compute_cubes([1, 2, 3, 4, 9, 7, 8])
  # Should print:
  # 1
  # 8
  # 27
  # 64
  # 343
  # 512
  assert compute_cubes([0, 9])
  # Should print nothing
output: def compute_cubes(numbers):
      for num in numbers:
          if 1 <= num <= 8:
              print(num ** 3)