input: Write a function to compute the cubic values of a list of numbers from 1 to 8 and print each result. If the input list contains any number outside the range of 1 to 8, the function should return False.
  assert print_cubics([1, 2, 3, 4, 5, 6, 7, 8])==None
  assert print_cubics([2, 4, 6, 8])==None
  assert print_cubics([1, 10, 3, 4])==False
  assert print_cubics([8, 7, 6, 5, 4, 9])==False
  assert print_cubics([])==False
output: def print_cubics(nums):
      if not all(1 <= num <= 8 for num in nums):
          return False
      for num in nums:
          print(num ** 3)