input: Write a function to generate a two-dimensional array filled with zeros with given dimensions in Python. The function should take two parameters: row (the number of rows) and col (the number of columns) and return the generated array. If the input row or col is zero, it should return an empty array.
  
  def generate_zeros_array(row, col):
      return [[0] * col for _ in range(row)] if row > 0 and col > 0 else []
  
  assert generate_zeros_array(3, 3) == [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
  assert generate_zeros_array(2, 4) == [[0, 0, 0, 0], [0, 0, 0, 0]]
  assert generate_zeros_array(0, 3) == []
  assert generate_zeros_array(3, 0) == []
  assert generate_zeros_array(0, 0) == []
output: def generate_zeros_array(row, col):
      return [[0] * col for _ in range(row)] if row > 0 and col > 0 else []