input: Write a function to create a dictionary from two given lists where the elements of the first list are the keys and the elements of the second list are the values. If the lists are of different lengths or empty, return an empty dictionary.
  
  assert create_dict(['a', 'b', 'c'], [1, 2, 3]) == {'a': 1, 'b': 2, 'c': 3}
  assert create_dict([], []) == {}
  assert create_dict(['x', 'y'], [10]) == {}
  assert create_dict([5, 6], [7, 8, 9]) == {}
output: def create_dict(keys, values):
      if len(keys) != len(values) or len(keys) == 0:
          return {}
      return dict(zip(keys, values))