input: Write a function to calculate and print the cubic values of a list of numbers from 1 to 8. Each number's cubic value should be printed on a new line. The function should take a list of numbers as input and perform the operation iteratively.
  assert cube_values([1, 2, 3, 4, 5, 6, 7, 8])
  
  Example output:
  1
  8
  27
  64
  125
  216
  343
  512
output: def cube_values(numbers):
      for num in numbers:
          print(num ** 3)