input: Write a function to print out each combination of elements from three given lists, where each combination consists of one element from each list, and each combination is printed on a new line.
  
  
  def print_combinations(lists):
      for x in lists[0]:
          for y in lists[1]:
              for z in lists[2]:
                  print(x, y, z)
  
  # Test cases
  print_combinations([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
  
output: def print_combinations(lists):
      for x in lists[0]:
          for y in lists[1]:
              for z in lists[2]:
                  print(x, y, z)