input: Write a function to create a Python dictionary from two given lists. The first list should serve as the keys, and the second list should serve as the values. If the lists are of different lengths, the function should return an empty dictionary.
  assert create_dict(['a', 'b', 'c'], [1, 2, 3])=={'a': 1, 'b': 2, 'c': 3}
  assert create_dict(['a', 'b', 'c'], [1, 2])=={}
  assert create_dict(['a', 'b'], [1, 2, 3])=={}
  assert create_dict(['a', 'b'], [])=={}
  assert create_dict([], [1, 2, 3])=={}
output: def create_dict(keys, values):
      if len(keys) != len(values):
          return {}
      return dict(zip(keys, values))