input: Write a function to calculate and print the cube of each number in a given list of numbers from 1 to 8.
  assert cube_numbers([1, 2, 3, 4, 5, 6, 7, 8])==[1, 8, 27, 64, 125, 216, 343, 512]
output: def cube_numbers(numbers):
      return [num ** 3 for num in numbers]