input: Write a function that takes a list of numbers from 1 to 8 and prints their cubic values.
  
  def print_cubes(list_numbers):
      for num in list_numbers:
          print(num**3)
  
  # Test cases
  print_cubes([1, 2, 3, 4, 5, 6, 7, 8])
  # Expected output:
  # 1
  # 8
  # 27
  # 64
  # 125
  # 216
  # 343
  # 512
output: def print_cubes(list_numbers):
      for num in list_numbers:
          print(num**3)